You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just found NelmioJsLoggerBundle while fetching nelmio/security-bundle into my project. We might just include JS error logging too. But we want to get rid of inline JavaScript too!
It should be easy to also provide a JavaScript file that can be included instead of the inline JavaScript generated by the twig tags.
Would you be interested in a PR for that?
The text was updated successfully, but these errors were encountered:
I'm all for it but it might prove a bit hard to do since you have dynamic bits in there like the reporting URL, log function name and possibly others. In any case if you figure it out and get it to work well feel free to send a PR!
An easy way to do it could be to provide a controller rendering the JS code. This way, it could handle the dynamic bits easily. However, this does not play nicely with combining assets, and requires booting the framework to render the asset.
An alternative is to provide a command dumping a static JS file with it. It would work fine as long as your router is configured properly for usage in the CLI
Hi,
I just found NelmioJsLoggerBundle while fetching nelmio/security-bundle into my project. We might just include JS error logging too. But we want to get rid of inline JavaScript too!
It should be easy to also provide a JavaScript file that can be included instead of the inline JavaScript generated by the twig tags.
Would you be interested in a PR for that?
The text was updated successfully, but these errors were encountered: