Skip to content

Add browser support where eval is not allowed by CSP #250

@mihaicodrean

Description

@mihaicodrean

How about enhancing this:
var globalEval = eval, global = globalEval('this');
to this:
var globalEval = eval, global = typeof window !== 'undefined' ? window : globalEval('this');
I can create a pull request if that helps adoption.

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