From 7c271f13e40b2e88eed134c5c4c29bb91e3750b5 Mon Sep 17 00:00:00 2001 From: FelisCatus Date: Tue, 12 Jun 2018 12:23:30 -0700 Subject: [PATCH] Do not try to connect to SwitchySharp when running under moz-. Fix #1503. --- omega-target-chromium-extension/src/module/switchysharp.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/omega-target-chromium-extension/src/module/switchysharp.coffee b/omega-target-chromium-extension/src/module/switchysharp.coffee index c2e632f..c8adae6 100644 --- a/omega-target-chromium-extension/src/module/switchysharp.coffee +++ b/omega-target-chromium-extension/src/module/switchysharp.coffee @@ -8,7 +8,8 @@ module.exports = class SwitchySharp port: null monitor: (action) -> - if not port? and not @_monitorTimerId + return if location.href.substr(4) == 'moz-' + if not port? and not @_monitorTimerId? @_monitorTimerId = setInterval @_connect.bind(this), 5000 if action != 'reconnect' @_connect()