Skip to content

Commit 4bbf428

Browse files
authored
on installation open up the sidepanel for users
1 parent 20d36c7 commit 4bbf428

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
chrome.sidePanel
2-
.setPanelBehavior({ openPanelOnActionClick: true })
3-
.catch((error) => console.error(error));
1+
chrome.runtime.onInstalled.addListener(({ reason }) => {
2+
if (reason === 'install') {
3+
chrome.sidePanel
4+
.setPanelBehavior({ openPanelOnActionClick: true })
5+
.catch((error) => console.error(error));
6+
}
7+
});

0 commit comments

Comments
 (0)