MV3: Remove pageAction
https://github.com/mozilla/multi-account-containers/pull/2477
This commit is contained in:
parent
85c3e92ae5
commit
ca30da62d6
1 changed files with 0 additions and 18 deletions
|
@ -103,11 +103,6 @@ window.assignManager = {
|
||||||
return !!syncEnabled;
|
return !!syncEnabled;
|
||||||
},
|
},
|
||||||
|
|
||||||
async getPageActionEnabled() {
|
|
||||||
const { pageActionEnabled } = await browser.storage.local.get({ pageActionEnabled: true });
|
|
||||||
return !!pageActionEnabled;
|
|
||||||
},
|
|
||||||
|
|
||||||
async getReplaceTabEnabled() {
|
async getReplaceTabEnabled() {
|
||||||
const { replaceTabEnabled } = await browser.storage.local.get("replaceTabEnabled");
|
const { replaceTabEnabled } = await browser.storage.local.get("replaceTabEnabled");
|
||||||
return !!replaceTabEnabled;
|
return !!replaceTabEnabled;
|
||||||
|
@ -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) {
|
contextualIdentityCreated(changeInfo) {
|
||||||
browser.contextMenus.create({
|
browser.contextMenus.create({
|
||||||
parentId: assignManager.OPEN_IN_CONTAINER,
|
parentId: assignManager.OPEN_IN_CONTAINER,
|
||||||
|
|
Loading…
Add table
Reference in a new issue