diff --git a/core/Listener/BeforeTemplateRenderedListener.php b/core/Listener/BeforeTemplateRenderedListener.php index 2185be0f02364..883acf7124057 100644 --- a/core/Listener/BeforeTemplateRenderedListener.php +++ b/core/Listener/BeforeTemplateRenderedListener.php @@ -6,6 +6,7 @@ * @copyright 2022 John Molakvoæ * * @author John Molakvoæ + * @author Richard Steinmetz * * @license GNU AGPL version 3 or any later version * @@ -49,12 +50,6 @@ public function handle(Event $event): void { \OC_Util::addStyle('server', null, true); - if ($event instanceof BeforeLoginTemplateRenderedEvent) { - // todo: make login work without these - //Util::addScript('core', 'common'); - //Util::addScript('core', 'main'); - } - if ($event instanceof BeforeTemplateRenderedEvent) { // include common nextcloud webpack bundle Util::addScript('core', 'common');