Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue running on Electron #30

Open
erikparr opened this issue Nov 26, 2018 · 0 comments
Open

issue running on Electron #30

erikparr opened this issue Nov 26, 2018 · 0 comments

Comments

@erikparr
Copy link

erikparr commented Nov 26, 2018

FYI - I installed the module and imported to my threejs app running on Electronjs and getting the following error:
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: "script-src 'self' app:".
It seems to be pointing to this function as the cause:

//create lookups for private vars
function wrapper(name) {
  return (new Function([
    'return function '+name+'() {',
    '  return this._'+name,
    '}'
  ].join('\n')))()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant