Review + QA updates - Part 1

This commit is contained in:
Lesley Norton
2021-10-21 23:02:27 -05:00
parent 0a772c8f04
commit 2f6e49bec0
5 changed files with 59 additions and 92 deletions
+6 -2
View File
@@ -12,6 +12,10 @@ const MozillaVPN = {
for (const el of document.querySelectorAll("[data-cookie-store-id]")) {
const cookieStoreId = el.dataset.cookieStoreId;
if (!proxies[cookieStoreId]) {
continue;
}
const { proxy } = proxies[cookieStoreId];
if (typeof(proxy) !== "undefined") {
@@ -139,7 +143,7 @@ const MozillaVPN = {
return proxies;
},
getMozillaProxyInfoObj () {
getMozillaProxyInfoObj() {
return {
countryCode: undefined,
cityName: undefined,
@@ -211,7 +215,7 @@ const MozillaVPN = {
return `socks://${socksName}.mullvad.net:1080`;
},
async pickRandomServer() {
async pickRandomLocation() {
const { mozillaVpnServers } = await browser.storage.local.get("mozillaVpnServers");
const randomInteger = this.getRandomInteger(0, mozillaVpnServers.length - 1);
const randomServerCountry = mozillaVpnServers[randomInteger];