Skip to content
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

Ensure compatibility with Chrome's new browser namespace #1540

Open
aklinker1 opened this issue Mar 28, 2025 · 2 comments
Open

Ensure compatibility with Chrome's new browser namespace #1540

aklinker1 opened this issue Mar 28, 2025 · 2 comments

Comments

@aklinker1
Copy link
Collaborator

https://groups.google.com/a/chromium.org/g/chromium-extensions/c/gK1Sd57p4go?pli=1

Just double check that @wxt-dev/browser still works on all browsers.

@Timeraa
Copy link
Member

Timeraa commented Mar 28, 2025

From what I saw in the API's we check browser || chrome so I think that should work from my standpoint but you know the code better than me

@aklinker1
Copy link
Collaborator Author

Yes, it should be fine, but I wanna at least run something on chrome canary to test it out.

export const browser = globalThis.browser?.runtime?.id
? globalThis.browser
: globalThis.chrome;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants