mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 15:08:12 -05:00
Fix potential race condition for proxyScriptLoaded event.
This commit is contained in:
parent
a7b885275c
commit
8618b405a6
@ -72,7 +72,6 @@ FindProxyForURL = (function () {
|
||||
}
|
||||
|
||||
function init() {
|
||||
browser.runtime.sendMessage({event: 'proxyScriptLoaded'});
|
||||
browser.runtime.onMessage.addListener(function(message) {
|
||||
if (message.event === 'proxyScriptStateChanged') {
|
||||
state = message.state;
|
||||
@ -85,5 +84,6 @@ FindProxyForURL = (function () {
|
||||
}
|
||||
}
|
||||
});
|
||||
browser.runtime.sendMessage({event: 'proxyScriptLoaded'});
|
||||
}
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user