Skip to content

Commit

Permalink
Merge pull request #2 from xennygrimmato/fix-runtime-err-grp-tab
Browse files Browse the repository at this point in the history
Fix runtime error - no groups to tab if no titles match
  • Loading branch information
xennygrimmato authored Jul 4, 2020
2 parents 3f81548 + 960d745 commit 0924e09
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 0924e09

Please sign in to comment.