diff options
author | Kostyantyn Leschenko <settlerko@gmail.com> | 2017-11-20 16:58:39 +0200 |
---|---|---|
committer | Kostyantyn Leschenko <settlerko@gmail.com> | 2017-11-20 16:58:39 +0200 |
commit | cc539d96bc2d14796279fc2c4c867bb6a3b2df06 (patch) | |
tree | ea29b6538d61b29b930abf2b5ed8fbdbf3d3533c /src | |
parent | 507c5b4f78aee09b45182f2b2650c61b11b68950 (diff) |
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; }); |