aboutsummaryrefslogtreecommitdiff
path: root/src/background/tabs.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/tabs.js')
-rw-r--r--src/background/tabs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/background/tabs.js b/src/background/tabs.js
index 5ed5bdf..d50d8e5 100644
--- a/src/background/tabs.js
+++ b/src/background/tabs.js
@@ -61,7 +61,7 @@ const selectByKeyword = (current, keyword) => {
const getCompletions = (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);
});
return matched;
});