Additional review refactoring

This commit is contained in:
Lesley Norton
2021-10-22 15:25:37 -05:00
parent 96bd0f4b4e
commit b552d41772
3 changed files with 9 additions and 11 deletions
+1 -2
View File
@@ -1588,8 +1588,6 @@ Logic.registerPanel(P_CONTAINER_EDIT, {
}
async updateProxyDependentUi(proxyInfo) {
const mozillaVpnConnected = await browser.runtime.sendMessage({ method: "MozillaVPN_getConnectionStatus" });
const containerHasProxy = typeof(proxyInfo) !== "undefined";
const mozillaVpnProxyLocationAvailable = (proxy) => {
@@ -1604,6 +1602,7 @@ Logic.registerPanel(P_CONTAINER_EDIT, {
this.updateProxyInputs(proxyInfo);
this.enableDisableProxyButtons();
const mozillaVpnConnected = await browser.runtime.sendMessage({ method: "MozillaVPN_getConnectionStatus" });
if (
!containerHasProxy ||
!mozillaVpnProxyLocationAvailable(proxyInfo) ||