Move the permission observers in the background scripts

This commit is contained in:
Andrea Marchesini
2021-11-30 20:13:48 +01:00
committed by Lesley Norton
parent 1b165aebb5
commit c146a0bd11
6 changed files with 47 additions and 29 deletions
-13
View File
@@ -252,19 +252,6 @@ const MozillaVPN = {
}
return nextServer;
},
async removeMozillaVpnProxies() {
const proxies = await proxifiedContainers.retrieveAll();
if (!proxies) {
return;
}
for (const proxyObj of proxies) {
const { proxy } = proxyObj;
if (proxy.countryCode !== undefined) {
await proxifiedContainers.delete(proxyObj.cookieStoreId);
}
}
}
};
window.MozillaVPN = MozillaVPN;