summaryrefslogtreecommitdiff
path: root/ext/js/background
diff options
context:
space:
mode:
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) {