Skip to content

Commit

Permalink
MV3: Remove pageAction
Browse files Browse the repository at this point in the history
  • Loading branch information
Nomes77 committed Jan 18, 2023
1 parent 50fd661 commit 85c3e92
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/js/background/messageHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -205,17 +202,6 @@ const messageHandler = {
});
}, {urls: ["<all_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;
Expand Down

0 comments on commit 85c3e92

Please sign in to comment.