Skip to content

node-webkit? CSP? #1

@ljharb

Description

@ljharb

How does this work in node-webkit?

I've been under the impression that the only reliable way to get the global object in everything is Function('return this')() which breaks CSP. Because of eval, your method also won't pass CSP, sadly.

I'd love to find some truly reliable, non-eval/non-Function approach to reliably get the global object. Feel free to close this if that's out of scope for this module.

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