File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,12 @@ public function handle(Event $event): void {
4949
5050 \OC_Util::addStyle ('server ' , null , true );
5151
52+ if ($ event instanceof BeforeLoginTemplateRenderedEvent) {
53+ // todo: make login work without these
54+ Util::addScript ('core ' , 'common ' );
55+ Util::addScript ('core ' , 'main ' );
56+ }
57+
5258 if ($ event instanceof BeforeTemplateRenderedEvent) {
5359 // include common nextcloud webpack bundle
5460 Util::addScript ('core ' , 'common ' );
Original file line number Diff line number Diff line change @@ -212,7 +212,12 @@ public static function getScripts(): array {
212212 $ sortedScripts = $ sortedScripts ? array_merge (...array_values (($ sortedScripts ))) : [];
213213
214214 // Override core-common and core-main order
215- array_unshift ($ sortedScripts , 'core/js/common ' , 'core/js/main ' );
215+ if (in_array ('core/js/main ' , $ sortedScripts )) {
216+ array_unshift ($ sortedScripts , 'core/js/main ' );
217+ }
218+ if (in_array ('core/js/common ' , $ sortedScripts )) {
219+ array_unshift ($ sortedScripts , 'core/js/common ' );
220+ }
216221
217222 return array_unique ($ sortedScripts );
218223 }
You can’t perform that action at this time.
0 commit comments