-
Notifications
You must be signed in to change notification settings - Fork 578
Closed
Description
Because of things like this:
typeof global == 'undefined' ? this : global
which should instead be:
typeof window == 'undefined' ? global : this
// OR
typeof window != 'undefined' ? window : (typeof WorkerGlobalScope != 'undefined' ? self : global)
Browsers will always have window
and possibly global
with node-webkit (or similar).
Node will never have window
but will always have global
.
Metadata
Metadata
Assignees
Labels
No labels