Skip to content

Commit

Permalink
Fix runtime error - no groups to tab if no titles match
Browse files Browse the repository at this point in the history
  • Loading branch information
xennygrimmato committed Jul 4, 2020
1 parent 3f81548 commit 960d745
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}
});
});
}

0 comments on commit 960d745

Please sign in to comment.