From 513dd83e4b9489af3195d118371201ab506e2e33 Mon Sep 17 00:00:00 2001 From: BPower0036 <80090789+BPower0036@users.noreply.github.com> Date: Wed, 18 Jan 2023 06:35:20 +0000 Subject: [PATCH] MV3: Remove pageAction https://github.com/mozilla/multi-account-containers/pull/2477 --- src/js/pageAction.js | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 src/js/pageAction.js diff --git a/src/js/pageAction.js b/src/js/pageAction.js deleted file mode 100644 index 8aa51e4..0000000 --- a/src/js/pageAction.js +++ /dev/null @@ -1,40 +0,0 @@ -async function init() { - const fragment = document.createDocumentFragment(); - const identities = await browser.contextualIdentities.query({}); - - for (const identity of identities) { - const tr = document.createElement("tr"); - tr.classList.add("menu-item", "hover-highlight"); - tr.setAttribute("data-cookie-store-id", identity.cookieStoreId); - const td = document.createElement("td"); - td.innerHTML = Utils.escaped` - - ${identity.name} - - `; - - tr.appendChild(td); - fragment.appendChild(tr); - - Utils.addEnterHandler(tr, async () => { - Utils.alwaysOpenInContainer(identity); - window.close(); - }); - } - - const list = document.querySelector("#picker-identities-list"); - list.innerHTML = ""; - list.appendChild(fragment); - - MozillaVPN.handleContainerList(identities); - - // Set the theme - Utils.applyTheme(); -} - -init();