Skip to content

Window is undefined when using Web Workers #18

@Yasamato

Description

@Yasamato

The usage of window here is causing a crash when including your script in workers, (Note: Web Workers do not have access to DOM, localstorage, session, cookies, window...).

In line 92 of jsonfn.js:
}(typeof exports === 'undefined' ? (window.JSONfn = {}) : exports));

I just want to point this out...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions