Open h3xstream opened 1 year ago
Can you please confirm which version of the multiselect this is occurring for?
This occures to me with version 2.1.7.
Problematic statement in the bundle:
Function("return this")()
If I try to do the same from the console it will fail too:
I could only find this in the dist
folder, so maybe it's a problem with the compilation?
Reproduction Link
(jsfiddle can't be used because the vue template are not compiled)
Steps to reproduce
Use the header
Include the component in your template (no special configuration needed)
Expected behaviour
VueJs use
eval
to compile its template. However, the template and component can generally be pre-compiled to JS to avoid those runtime eval.CSP is used by website to prevent unexpected XSS. In my case, when developping a Chrome extension, pages are runned with the header include above. (
script-src 'self'; ...
)Actual behaviour
The error that is shown in the console :
I think the faulty code is the following: