From 6aa5e8b1e2130db3e7d30b16e2200385570280bf Mon Sep 17 00:00:00 2001 From: erosman Date: Sun, 15 Oct 2023 10:40:25 +0330 Subject: [PATCH] Add files via upload --- src/content/options.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/content/options.js b/src/content/options.js index c4b81f6..0cf713a 100644 --- a/src/content/options.js +++ b/src/content/options.js @@ -164,8 +164,7 @@ class Options { // --- check mode // get from storage in case it was changed while options page has been open - const m = await browser.storage.local.get({mode: 'disable'}); - let mode = m.mode; + let {mode} = await browser.storage.local.get({mode: 'disable'}); switch (true) { case pref.mode.includes('://') && !pref.data.some(i => i.active && i.type === 'pac' && mode === i.pac): case pref.mode.includes(':') && !pref.data.some(i => i.active && i.type !== 'pac' && mode === `${i.hostname}:${i.port}`):