Skip to content

Commit

Permalink
Badge: show event counter on extension badge
Browse files Browse the repository at this point in the history
See #35 & #36
  • Loading branch information
jethron committed Jan 19, 2022
1 parent d38e5db commit b3d8345
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Debugger/Timeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,10 @@ export const Timeline: Component<ITimeline> = {
),
]);
});
chrome.browserAction.setBadgeText({
tabId: chrome.devtools.inspectedWindow.tabId,
text: "" + beacons.length,
});
if (!active && first) setActive(first);
return beacons
.reduce(
Expand Down

0 comments on commit b3d8345

Please sign in to comment.