Skip to content

feat: use globalThis for web-workers compatibility#25

Open
carloscortonc wants to merge 1 commit intovkiryukhin:masterfrom
carloscortonc:master
Open

feat: use globalThis for web-workers compatibility#25
carloscortonc wants to merge 1 commit intovkiryukhin:masterfrom
carloscortonc:master

Conversation

@carloscortonc
Copy link

Replaces window.x with globalThis.x so it works on web-workers, were window is not defined

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis#description

Reported here: #18

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.

1 participant