diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index b3ab04cf34e..c5a3b36a6b8 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -44,6 +44,7 @@ use OCP\AppFramework\Http\TemplateResponse; use OCP\AppFramework\Http\Template\PublicTemplateResponse; use OCP\AppFramework\Services\IInitialState; +use OCP\EventDispatcher\GenericEvent; use OCP\EventDispatcher\IEventDispatcher; use OCP\Files\IRootFolder; use OCP\ICacheFactory; @@ -255,6 +256,7 @@ public function index(string $token = '', string $callUser = '', string $passwor $this->eventDispatcher->dispatchTyped(new LoadViewer()); } + $this->eventDispatcher->dispatch('\OCP\Collaboration\Resources::loadAdditionalScripts', new GenericEvent()); $response = new TemplateResponse($this->appName, 'index'); $csp = new ContentSecurityPolicy(); $csp->addAllowedConnectDomain('*'); diff --git a/templates/index.php b/templates/index.php index b3949fe93c8..5a9abb765f6 100644 --- a/templates/index.php +++ b/templates/index.php @@ -1,11 +1,6 @@ getEventDispatcher()->dispatch('\OCP\Collaboration\Resources::loadAdditionalScripts'); -}