diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index d3246e1d06e..5b2cdc866d8 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -43,6 +43,7 @@ use OCP\AppFramework\Http\Response; use OCP\AppFramework\Http\TemplateResponse; use OCP\AppFramework\Http\Template\PublicTemplateResponse; +use OCP\EventDispatcher\GenericEvent; use OCP\EventDispatcher\IEventDispatcher; use OCP\Files\IRootFolder; use OCP\ICacheFactory; @@ -249,6 +250,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'); -}