Fix uncaught error
This commit is contained in:
parent
91b0b4519e
commit
0a772c8f04
1 changed files with 4 additions and 1 deletions
|
@ -24,10 +24,13 @@ const MozillaVPN = {
|
|||
}
|
||||
if (!mozillaVpnConnected && proxy.mozProxyEnabled) {
|
||||
flag.classList.add("proxy-unavailable");
|
||||
const menuItemName = el.querySelector(".menu-item-name");
|
||||
if (menuItemName) {
|
||||
el.querySelector(".menu-item-name").dataset.mozProxyWarning = "proxy-unavailable";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
async setStatusIndicatorIcons(mozillaVpnInstalled) {
|
||||
|
|
Loading…
Add table
Reference in a new issue