javascript
javascript copied to clipboard
Prefer Globalthis, fall back to window when detecting root
Ran into weird calling code inside a webworker in android chrome that calls ulid() exported here, and then hits this error. Can't see where the bug is, but regardless, should check for globalThis to be compatable with webworkers.