diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-05-30 21:38:01 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-05-30 21:38:01 +0900 |
commit | e286aab3d7af50494f78d6a470ed20c5c8cfc59b (patch) | |
tree | ecc37fbaea8395ab14ed742157dcdd0427639c42 /src/background | |
parent | 982a54c0aa6d1ae99932a05100bceafad6d3669c (diff) |
Check title null
Diffstat (limited to 'src/background')
-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) { |