aboutsummaryrefslogtreecommitdiff
path: root/src/background
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-11-29 18:35:35 +0900
committerGitHub <noreply@github.com>2017-11-29 18:35:35 +0900
commit8361b70d0b0d5051bcc268d36cbffed27579220a (patch)
treee638a5e03e89bdff27e6f8f83d74a07619b99bdf /src/background
parent8e60f79ecc15724b5275147fbf2682aa71dcbeac (diff)
parentcc539d96bc2d14796279fc2c4c867bb6a3b2df06 (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/background')
-rw-r--r--src/background/tabs.js2
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;
});