Skip to content

Commit

Permalink
Hide Mozilla VPN proxy flags when proxy permission is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleyjanenorton committed Dec 6, 2021
1 parent ca69b02 commit 7422dc8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/mozillaVpn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7422dc8

Please sign in to comment.