Hide Mozilla VPN proxy flags when proxy permission is disabled
This commit is contained in:
parent
396411f8b3
commit
2fbb3e0087
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue