-
Notifications
You must be signed in to change notification settings - Fork 892
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
fix: browser detection #8315
fix: browser detection #8315
Conversation
🦋 Changeset detectedLatest commit: 3a2a1ba The changes in this PR will be included in the next version bump. This PR includes changesets to release 29 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Thanks for working on this guys! |
Hi @JoseVSeb, Unfortunately adding I'm still working on this issue, though, and trying to find alternatives to a change that requires the use of
|
Hi @DellaBitta,
this detects web worker fine but it also detects Edge runtime (unless
I added WebWorker to libs since I was using I'll update the PR. |
update browser detection logic: detect either window or web worker (WorkerGlobalScope). fixes firebase#8299 firebase#8284
5f7c0d0
to
baa96ce
Compare
Ok, thank you! Another change request, if you would! The current PR adds a call to Instead of adding Something like this:
This would mean that the PR doesn't fix issue #8284 (the Auth Lite issue), but perhaps it will enable |
I called firebase-js-sdk/packages/app/index.ts Line 26 in f6afa45
did you mean
I'm not exactly certain of that issue but #8284 (comment) seems to suggest that this could be a possible fix, that's why I mentioned it. |
I suppose it's worth mentioning some of the team's goals:
I know this is a lot, so if you'd rather I do this this work in a new PR then let me know! |
Please revert the change to isBrowser's implementation and then we should be good to go! |
@DellaBitta, I raised this PR because I traced the source of change to #1773 where browser detection was changed from I raised this PR so that |
Ah, I see! Sorry for the confusion. This looks ok to me but let me get one more pair of eyes on it. |
Merging. Thanks for the contribution! |
Update browser detection logic:
Detect either window or web worker (WorkerGlobalScope).
Fixes #8299
Fixes #8284