mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-02-02 02:58:13 -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
|
port: null
|
||||||
|
|
||||||
monitor: (action) ->
|
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
|
@_monitorTimerId = setInterval @_connect.bind(this), 5000
|
||||||
if action != 'reconnect'
|
if action != 'reconnect'
|
||||||
@_connect()
|
@_connect()
|
||||||
|
Loading…
Reference in New Issue
Block a user