File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929use OCA \Files \Event \LoadSidebar ;
3030use OCA \Viewer \Event \LoadViewer ;
3131use OCP \AppFramework \Http \ContentSecurityPolicy ;
32+ use OCP \Collaboration \Resources \LoadAdditionalScriptsEvent as CollaborationResourcesEvent ;
3233use OCP \EventDispatcher \IEventDispatcher ;
3334use OCP \IConfig ;
3435use OCP \IInitialStateService ;
@@ -88,6 +89,7 @@ public function index() {
8889 $ this ->initialState ->provideInitialState (Application::APP_ID , 'config ' , $ this ->configService ->getAll ());
8990
9091 $ this ->eventDispatcher ->dispatchTyped (new LoadSidebar ());
92+ $ this ->eventDispatcher ->dispatchTyped (new CollaborationResourcesEvent ());
9193 if (class_exists (LoadViewer::class)) {
9294 $ this ->eventDispatcher ->dispatchTyped (new LoadViewer ());
9395 }
Original file line number Diff line number Diff line change 2424
2525OCP \Util::addStyle ('deck ' , 'globalstyles ' );
2626OCP \Util::addScript ('deck ' , 'deck-main ' );
27-
28- \OCP \Server::get (\OC \EventDispatcher \SymfonyAdapter::class)
29- ->dispatch ('\OCP\Collaboration\Resources::loadAdditionalScripts ' );
You can’t perform that action at this time.
0 commit comments