mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 15:08:12 -05:00
Do not try to connect to SwitchySharp when running under moz-. Fix #1503.
This commit is contained in:
parent
d20be4fd1b
commit
7c271f13e4
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user