Skip to content

Commit

Permalink
Optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Feb 1, 2024
1 parent 6b852f7 commit ba5a1dd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ async function registerToTST() {
//icons: browser.runtime.getManifest().icons,
listeningTypes: [
'sidebar-show',
'tab-rendered',
'tabs-rendered',
],
style: getStyle()
});
Expand Down Expand Up @@ -175,8 +175,10 @@ browser.runtime.onMessageExternal.addListener((message, sender) => {
});
break;

case 'tab-rendered':
insertHandle(message.tab.id);
case 'tabs-rendered':
for (const tab of message.tabs) {
insertHandle(tab.id);
}
break;
}
break;
Expand Down

0 comments on commit ba5a1dd

Please sign in to comment.