From cc539d96bc2d14796279fc2c4c867bb6a3b2df06 Mon Sep 17 00:00:00 2001 From: Kostyantyn Leschenko Date: Mon, 20 Nov 2017 16:58:39 +0200 Subject: Fix buffers completion when there are some tabs with undefined title. --- src/background/tabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; }); -- cgit v1.2.3