From e286aab3d7af50494f78d6a470ed20c5c8cfc59b Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Wed, 30 May 2018 21:38:01 +0900 Subject: Check title null --- src/background/shared/tabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/background/shared/tabs.js b/src/background/shared/tabs.js index d09f676..8135d0e 100644 --- a/src/background/shared/tabs.js +++ b/src/background/shared/tabs.js @@ -87,7 +87,7 @@ const selectAt = (index) => { const selectByKeyword = (current, 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); }); if (matched.length === 0) { -- cgit v1.2.3