mirror of
https://github.com/nextcloud/server.git
synced 2026-10-07 19:51:40 +02:00
A file link is not only on the Files list: an app can put one on any page, and the old LoadViewer event existed so those pages could ask the app to load itself. Core puts the init script on every rendered page instead, the themed error page aside, and the script only registers the handlers: nothing of the viewer is fetched until a file is opened. Assisted-by: ClaudeCode:claude-opus-5 Signed-off-by: skjnldsv <skjnldsv@protonmail.com>