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

Using in Chrome Extension #108

Open
bendangelo opened this issue Oct 7, 2024 · 0 comments
Open

Using in Chrome Extension #108

bendangelo opened this issue Oct 7, 2024 · 0 comments

Comments

@bendangelo
Copy link

I would like to use this in my chrome extension but eval is blocked. Do you have any work arounds? This is caused by the custom node class.

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'".

    at Function (<anonymous>)
    at custom.rb:21:1
    at custom.rb:11:1
    at custom.rb:5:29
    at custom.rb:5:17
    at Opal.modules.browser/dom/element/custom (custom.rb:5:1)
    at Object.load_normalized (runtime.js:2752:7)
    at Object.require (runtime.js:2787:5)
    at klass.$$require (kernel.rb:744:1)
    at Opal.modules.browser/setup/full (full.rb:11:1)
    at Object.load_normalized (runtime.js:2752:7)
    at Object.require (runtime.js:2787:5)
    at require.js:1:55
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