diff --git a/src/js/background/messageHandler.js b/src/js/background/messageHandler.js index cb1d138..04b78a7 100644 --- a/src/js/background/messageHandler.js +++ b/src/js/background/messageHandler.js @@ -20,9 +20,6 @@ const messageHandler = { case "resetSync": response = sync.resetSync(); break; - case "resetPageAction": - response = assignManager.resetPageAction(); - break; case "deleteContainer": response = backgroundLogic.deleteContainer(m.message.userContextId); break; @@ -205,17 +202,6 @@ const messageHandler = { }); }, {urls: [""], types: ["main_frame"]}); - browser.tabs.onUpdated.addListener((tabId) => { - // check if the page action is enabled right away to avoid flashing - browser.storage.local.get({ pageActionEnabled: true }).then(({ pageActionEnabled }) => { - if (pageActionEnabled) { - browser.pageAction.show(tabId); - } - }).catch(e => { - throw e; - }); - }, { properties: ["status"] }); - browser.tabs.onCreated.addListener((tab) => { // lets remember the last tab created so we can close it if it looks like a redirect this.lastCreatedTab = tab;