diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-11-29 18:35:35 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-29 18:35:35 +0900 |
commit | 8361b70d0b0d5051bcc268d36cbffed27579220a (patch) | |
tree | e638a5e03e89bdff27e6f8f83d74a07619b99bdf /src | |
parent | 8e60f79ecc15724b5275147fbf2682aa71dcbeac (diff) | |
parent | cc539d96bc2d14796279fc2c4c867bb6a3b2df06 (diff) |
Merge pull request #222 from kleschenko/fix_buffers_completion
Fix buffers completion when there are some tabs with undefined title.
Diffstat (limited to 'src')
-rw-r--r-- | src/background/tabs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/background/tabs.js b/src/background/tabs.js index d641616..b34f7c2 100644 --- a/src/background/tabs.js +++ b/src/background/tabs.js @@ -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; }); |