aboutsummaryrefslogtreecommitdiff
path: root/src/background
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-05-30 21:38:01 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-05-30 21:38:01 +0900
commite286aab3d7af50494f78d6a470ed20c5c8cfc59b (patch)
treeecc37fbaea8395ab14ed742157dcdd0427639c42 /src/background
parent982a54c0aa6d1ae99932a05100bceafad6d3669c (diff)
Check title null
Diffstat (limited to 'src/background')
-rw-r--r--src/background/shared/tabs.js2
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) {