Closed AngelMunoz closed 2 years ago
you can also grab some inspiration from this https://github.com/davedawkins/Sutil/pull/43/files#diff-469049174da5c0501dc98ae73a9c8a7b17aa9c7abead51ee31221916da6142cbR4-R75
which doesn't use eval at all and does the function approach which chould be translated to F# if we want to ditch the JS files
Eval removed - thanks for the help
https://github.com/davedawkins/Sutil/blob/804ea324ee6bfc24b8bd1d5b54cbe6099c09a070/src/Sutil/webcomponent.js#L70
I think this won't pass security considerations due to CSP I'd suggest avoid
eval
and try something different, the class used for the web component doesn't need to match the name with the name in the registry classes can be anonymous in Javascriptcould be translated to
If we're on a javascript file there's no need to avoid JS classes, if we're doing this inside F# then the func version would be preferred but even then
eval
should be avoided for security concerns