Hide Mozilla VPN proxy flags when proxy permission is disabled

This commit is contained in:
Lesley Norton 2021-12-05 16:49:20 -06:00
parent 396411f8b3
commit 2fbb3e0087
No known key found for this signature in database
GPG key ID: E98FBAEE3F13956E

View file

@ -5,6 +5,11 @@ const MozillaVPN = {
const mozillaVpnInstalled = await browser.runtime.sendMessage({ method: "MozillaVPN_getInstallationStatus" });
this.handleStatusIndicatorsInContainerLists(mozillaVpnInstalled);
const permissionsEnabled = await this.bothPermissionsEnabled();
if (!permissionsEnabled) {
return;
}
const proxies = await this.getProxies(identities);
if (Object.keys(proxies).length === 0) {
return;