Check title null
This commit is contained in:
parent
982a54c0aa
commit
e286aab3d7
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Reference in a new issue