Skip to content

Commit

Permalink
Do not try to connect to SwitchySharp when running under moz-. Fix Fe…
Browse files Browse the repository at this point in the history
  • Loading branch information
FelisCatus committed Jun 12, 2018
1 parent d20be4f commit 7c271f1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7c271f1

Please sign in to comment.