diff options
Diffstat (limited to 'src/bg/popupHandler.js')
-rw-r--r-- | src/bg/popupHandler.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bg/popupHandler.js b/src/bg/popupHandler.js index b893174..f5c2049 100644 --- a/src/bg/popupHandler.js +++ b/src/bg/popupHandler.js @@ -1,5 +1,6 @@ browser.runtime.onConnect.addListener(port => { if (port.name === "noscript.popup") { + ns.popupOpened = true; let pendingReload = false; let tabId = -1; port.onMessage.addListener(m => { @@ -9,6 +10,7 @@ browser.runtime.onConnect.addListener(port => { } }); port.onDisconnect.addListener(() => { + ns.popupOpened = false; if (pendingReload) { browser.tabs.reload(tabId); } |