Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

improve global object #50

@calvinmetcalf

Description

@calvinmetcalf

currently it will fail if we are in a web worker or in an unknown situation in strict mode

compare what this module adds

typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : this;

with what browserify adds

typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}

how I'd recommend switching to the browserify version

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