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 85c3e92 commit ca30da6
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/js/background/assignManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,6 @@ window.assignManager = {
return !!syncEnabled;
},

async getPageActionEnabled() {
const { pageActionEnabled } = await browser.storage.local.get({ pageActionEnabled: true });
return !!pageActionEnabled;
},

async getReplaceTabEnabled() {
const { replaceTabEnabled } = await browser.storage.local.get("replaceTabEnabled");
return !!replaceTabEnabled;
Expand Down Expand Up @@ -563,19 +558,6 @@ window.assignManager = {
}
},

async resetPageAction() {
const pageActionEnabled = await this.storageArea.getPageActionEnabled();
const tabs = await browser.tabs.query({});
const res = tabs.map((tab) => {
if (pageActionEnabled) {
return browser.pageAction.show(tab.id);
} else {
return browser.pageAction.hide(tab.id);
}
});
await Promise.all(res);
},

contextualIdentityCreated(changeInfo) {
browser.contextMenus.create({
parentId: assignManager.OPEN_IN_CONTAINER,
Expand Down

0 comments on commit ca30da6

Please sign in to comment.