mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-27 13:29:34 +07:00
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:
@@ -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));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user