Handle any response as signal that the mvpn-bridge is present
This commit is contained in:
parent
cdd8ebc66a
commit
338bd1e6ac
1 changed files with 1 additions and 1 deletions
|
@ -66,11 +66,11 @@ const MozillaVPN_Background = {
|
|||
|
||||
// Handle responses from MozillaVPN client
|
||||
async handleResponse(response) {
|
||||
MozillaVPN_Background._installed = true;
|
||||
if (response.error && response.error === "vpn-client-down") {
|
||||
MozillaVPN_Background._connected = false;
|
||||
return;
|
||||
}
|
||||
MozillaVPN_Background._installed = true;
|
||||
if (response.servers) {
|
||||
const servers = response.servers.countries;
|
||||
browser.storage.local.set({ [MozillaVPN_Background.MOZILLA_VPN_SERVERS_KEY]: servers});
|
||||
|
|
Loading…
Add table
Reference in a new issue