Skip to content

Javascript "Unsafe Eval" Chrome Webapps  #559

@nate-zimmerman

Description

@nate-zimmerman

When attempting to use "math.js" in any chrome app the following appears:
"
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "default-src 'self' blob: filesystem: chrome-extension-resource:".
"
The line(1715 ) it errors at is here(in non-compiled version):
" var factory = (new Function(refs.name, 'createError', body)); "
Any idea what it might take to get math.js to work in chrome webapps?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions