Skip to content

doesn't work with node-webkit #1340

@stevenvachon

Description

@stevenvachon

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions