From 528c8ea57790738564cf42b6fb499bdfd7f2e78a Mon Sep 17 00:00:00 2001 From: hackademix Date: Wed, 11 Dec 2019 13:02:10 +0100 Subject: Fixed shortcut and context menu doing nothing unless browserAction icon is visible on Firefox (issue #58). --- src/ui/popup.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ui') diff --git a/src/ui/popup.js b/src/ui/popup.js index c29b94d..4b5dc85 100644 --- a/src/ui/popup.js +++ b/src/ui/popup.js @@ -43,10 +43,9 @@ addEventListener("unload", e => { tabId = tab.id; } - + let port = browser.runtime.connect({name: "noscript.popup"}); await UI.init(tabId); - let port = browser.runtime.connect({name: "noscript.popup"}) function pendingReload(b) { try { port.postMessage({tabId, pendingReload: b}); -- cgit v1.2.3