diff --git a/src/js/core.js b/src/js/core.js index 10c1079..34a1461 100644 --- a/src/js/core.js +++ b/src/js/core.js @@ -136,7 +136,9 @@ export function groupTabsWithTitle(windowId, title) { console.log(tab.title, tab.url); } console.log("matchingIdxs", matchingIdxs); - chrome.tabs.highlight({'tabs': matchingIdxs}); + if (matchingIds.length != 0) { + chrome.tabs.highlight({'tabs': matchingIdxs}); + } }); }); }