Skip to content

check both window and self#423

Merged
durran merged 1 commit intomongodb:masterfrom
fasidOnGit:bson-webworker
Mar 2, 2021
Merged

check both window and self#423
durran merged 1 commit intomongodb:masterfrom
fasidOnGit:bson-webworker

Conversation

@fasidOnGit
Copy link
Contributor

@fasidOnGit fasidOnGit commented Feb 4, 2021

Description

This PR makes this package usable in a web-worker.

Another approach would be to use globalThis. But, that would required node 12+, I see there is quite good support for it in browsers.

Copy link
Contributor

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing this fix, LGTM we'll get this out in the next release.

@durran durran merged commit 5ae057d into mongodb:master Mar 2, 2021
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

Successfully merging this pull request may close these issues.

3 participants