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

Cannot use in manifest v3 chrome extension because it uses new Function #48

Open
ledlamp opened this issue Oct 11, 2024 · 1 comment
Open

Comments

@ledlamp
Copy link

ledlamp commented Oct 11, 2024

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

evaluating javascript code in chrome extension is not allowed so it is impossible to use this in chrome extension :(

@kgryte
Copy link

kgryte commented Oct 14, 2024

@ledlamp You could use @stdlib/ndarray-ctor which doesn't use code evaluation. If you are needing to use specific scijs functionality, you'll need to write a small adapter, as the array objects are not directly compatible.

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

2 participants