diff options
Diffstat (limited to 'src/background/shared/tabs.js')
-rw-r--r-- | src/background/shared/tabs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/background/shared/tabs.js b/src/background/shared/tabs.js index d09f676..8135d0e 100644 --- a/src/background/shared/tabs.js +++ b/src/background/shared/tabs.js @@ -87,7 +87,7 @@ const selectAt = (index) => { const selectByKeyword = (current, keyword) => { return browser.tabs.query({ currentWindow: true }).then((tabs) => { let matched = tabs.filter((t) => { - return t.url.includes(keyword) || t.title.includes(keyword); + return t.url.includes(keyword) || t.title && t.title.includes(keyword); }); if (matched.length === 0) { |