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
files_sharing is missing loadAdditionalScripts #22328
Comments
What do you mean? it should dispatch the event on the public page? |
Exactly, allowing apps to behave properly by only loading their scripts on pages firing the |
backlog for now, PRs welcome |
Hello, any plan to fix this right now?
e.g. gallery has now 2 versions per cloud which could be avoided I guess? https://github.com/nextcloud/gallery/blob/master/appinfo/app.php#L77 I would like to avoid this for the Audio Player in my case |
I'd be fine adding this event if needed. Mind submitting a PR ? |
@PVince81 I don´t have an idea on how to implement this. any chance that this is being provided by oC until the next release? |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
It's currently not possible to safely add Javascript to files_sharing as it's not dispatching the
loadAdditionalScripts
event.Until this is fixed,
core
and any installed apps will be polluted by apps which add their scripts to app.php without making any checks to make sure they're on the page they target, leading to broken apps andcore
.The text was updated successfully, but these errors were encountered: