From 2fbb3e0087298948fd62c17c10ed8e397980adeb Mon Sep 17 00:00:00 2001 From: Lesley Norton Date: Sun, 5 Dec 2021 16:49:20 -0600 Subject: [PATCH] Hide Mozilla VPN proxy flags when proxy permission is disabled --- src/js/mozillaVpn.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/js/mozillaVpn.js b/src/js/mozillaVpn.js index 9fc337a..08ec4d6 100644 --- a/src/js/mozillaVpn.js +++ b/src/js/mozillaVpn.js @@ -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;