We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20d36c7 commit 4bbf428Copy full SHA for 4bbf428
functional-samples/ai.gemini-on-device/background.js
@@ -1,3 +1,7 @@
1
-chrome.sidePanel
2
- .setPanelBehavior({ openPanelOnActionClick: true })
3
- .catch((error) => console.error(error));
+chrome.runtime.onInstalled.addListener(({ reason }) => {
+ if (reason === 'install') {
+ chrome.sidePanel
4
+ .setPanelBehavior({ openPanelOnActionClick: true })
5
+ .catch((error) => console.error(error));
6
+ }
7
+});
0 commit comments