Fix null not being handled properly in _findTab result (#1331)
This commit is contained in:
parent
ba8b02cda5
commit
0ba1427775
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user