You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although it works as expected in a dev environment, in production environments this behavior does not open the side panel when users click the pinned extension icon. Users would have to right-click and select "Open Side Panel," which is not intuitive.
Expected behavior
Potential users expect to be able to open the side panel directly by clicking the pinned extension icon once, without needing to right-click > "Open Side Panel" in production.
Suggested Fix
Developers should see an example that will follow best practices for production use.
Update background.js to wrap the code in a Chrome onClick listener:
Hi @chostudio, feel free to open a PR. I wouldn't set the behavior in the action.onClicked event, since by the time that has fired the click is already being handled. However, moving it to a chrome.runtime.onInstalled listener might make sense.
Relevant Line
https://github.com/GoogleChrome/chrome-extensions-samples/blob/20d36c778028f25fb139b83fdd9910b530bd9ea2/functional-samples/ai.gemini-on-device/background.js
Describe the bug
Currently, the side panel is configured as:
Although it works as expected in a dev environment, in production environments this behavior does not open the side panel when users click the pinned extension icon. Users would have to right-click and select "Open Side Panel," which is not intuitive.
Expected behavior
Potential users expect to be able to open the side panel directly by clicking the pinned extension icon once, without needing to right-click > "Open Side Panel" in production.
Suggested Fix
Developers should see an example that will follow best practices for production use.
Update background.js to wrap the code in a Chrome onClick listener:
The text was updated successfully, but these errors were encountered: