Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
erosman authored Oct 15, 2023
1 parent 7faa07f commit 6aa5e8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/content/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`):
Expand Down

0 comments on commit 6aa5e8b

Please sign in to comment.