ulid / javascript

Universally Unique Lexicographically Sortable Identifier
MIT License
3.04k stars 107 forks source link

Prefer Globalthis, fall back to window when detecting root #105

Open disarticulate opened 1 year ago

disarticulate commented 1 year ago

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.