Skip to content

Cannot use in worker because window is not defined #64

@bmatcuk

Description

@bmatcuk

In src/utils.ts, the console methods are cached. However, in a JS worker, window is undefined, and, so, this code fails with "ReferenceError: window is not defined".

It appears these cached methods are only used in two places: src/plugins/logger.ts and src/capture.ts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions