diff --git a/lib/Listener/LoadViewerScript.php b/lib/Listener/LoadViewerScript.php index 0e4681c61..5a7ad7f0f 100644 --- a/lib/Listener/LoadViewerScript.php +++ b/lib/Listener/LoadViewerScript.php @@ -54,6 +54,7 @@ public function handle(Event $event): void { return; } + Util::addInitScript(Application::APP_ID, 'viewer-init', 'files'); Util::addScript(Application::APP_ID, 'viewer-main', 'files'); $this->initialStateService->provideInitialState('enabled_preview_providers', array_keys($this->previewManager->getProviders())); } diff --git a/src/components/Images.vue b/src/components/Images.vue index 4f5138f18..d1bb850dc 100644 --- a/src/components/Images.vue +++ b/src/components/Images.vue @@ -86,8 +86,6 @@