-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to open sidepanel when click the plugin icon in chrome? #570
Comments
Edit: See @abegehr response below for the correct way: #570 (comment)
// entrypoints/background.ts
browser.action.onClicked.addListener(() => browser.sidePanel.open());
// wxt.config.ts
export default defineConfig({
manifest: {
action: {},
}
}) |
I ran into the same question. Two remarks:
|
Instead of using the
Again, TSC will complain about |
As @abegehr said, the type issue is still exist. |
|
@aklinker1 Thoughts on adding a sidepanel page by default in all templates? |
I've consistently said no to adding content to the templates:
So I'm going to say no to this one as well. Templates are a huge time sink to keep up to date and the more features/variants that are added, the more time it takes away from me to add features and fixes to WXT itself. That said, I'm open to adding community template support to the |
No description provided.
The text was updated successfully, but these errors were encountered: