summaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/backend.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index b0648ac5..4a3b7663 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -1809,7 +1809,7 @@ class Backend {
switch (mode) {
case 'existingOrNewTab':
if (useSettingsV2) {
- const tab = await this._findTab(1000, (url2) => url2.startsWith(url));
+ const tab = await this._findTab(1000, (url2) => (url2 !== null && url2.startsWith(url)));
if (tab !== null) {
await this._focusTab(tab);
} else {