Merge pull request #222 from kleschenko/fix_buffers_completion
Fix buffers completion when there are some tabs with undefined title.
This commit is contained in:
commit
8361b70d0b
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,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;
|
||||
});
|
||||
|
|
Reference in a new issue