summaryrefslogtreecommitdiff
path: root/ext/js/background
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-02-19 18:39:28 -0500
committerGitHub <noreply@github.com>2021-02-19 18:39:28 -0500
commit19d0d5b5121e1b5d1bf939151d1e118ec5b168ab (patch)
treeb61c38e94d6ba688982ea4d43de9ae6f0cbe3090 /ext/js/background
parent98ac73260e1eec325ae18933876038d60f88ec20 (diff)
Fix useSettingsV2 option (for real this time) (#1421)
Diffstat (limited to 'ext/js/background')
-rw-r--r--ext/js/background/backend.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js
index 2a3ccbc2..323219a4 100644
--- a/ext/js/background/backend.js
+++ b/ext/js/background/backend.js
@@ -1914,7 +1914,7 @@ class Backend {
const url = chrome.runtime.getURL(useSettingsV2 ? manifest.options_ui.page : '/settings-old.html');
switch (mode) {
case 'existingOrNewTab':
- if (useSettingsV2) {
+ if (!useSettingsV2) {
const predicate = ({url: url2}) => (url2 !== null && url2.startsWith(url));
const tab = await this._findTabs(1000, false, predicate, false);
if (tab !== null) {