Hide Mozilla VPN proxy flags when proxy permission is disabled
This commit is contained in:
@@ -5,6 +5,11 @@ const MozillaVPN = {
|
|||||||
const mozillaVpnInstalled = await browser.runtime.sendMessage({ method: "MozillaVPN_getInstallationStatus" });
|
const mozillaVpnInstalled = await browser.runtime.sendMessage({ method: "MozillaVPN_getInstallationStatus" });
|
||||||
this.handleStatusIndicatorsInContainerLists(mozillaVpnInstalled);
|
this.handleStatusIndicatorsInContainerLists(mozillaVpnInstalled);
|
||||||
|
|
||||||
|
const permissionsEnabled = await this.bothPermissionsEnabled();
|
||||||
|
if (!permissionsEnabled) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const proxies = await this.getProxies(identities);
|
const proxies = await this.getProxies(identities);
|
||||||
if (Object.keys(proxies).length === 0) {
|
if (Object.keys(proxies).length === 0) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user