on installation open up the sidepanel for users (#1483)

* on installation open up the sidepanel for users

* ran 'npm run lint:fix'
This commit is contained in:
Chris Ho
2025-06-05 02:05:41 -10:00
committed by GitHub
parent 08e8c96c5f
commit 9911b0a667

View File

@@ -1,3 +1,7 @@
chrome.sidePanel
.setPanelBehavior({ openPanelOnActionClick: true })
.catch((error) => console.error(error));
chrome.runtime.onInstalled.addListener(({ reason }) => {
if (reason === 'install') {
chrome.sidePanel
.setPanelBehavior({ openPanelOnActionClick: true })
.catch((error) => console.error(error));
}
});