Check title null

jh-changes
Shin'ya Ueoka 7 years ago
parent 982a54c0aa
commit e286aab3d7
  1. 2
      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) {