retro/lib/Listener/LoadAdditionalScriptsListener.php
Michel Roux dc16fc8c49
Some checks failed
retro / xml (push) Successful in 22s
retro / php (push) Failing after 34s
retro / nodejs (push) Failing after 1m0s
retro / release (push) Has been skipped
feat: remove vue and work on init
2025-01-02 08:10:20 +01:00

24 lines
504 B
PHP

<?php
declare(strict_types=1);
namespace OCA\Retro\Listener;
use OCA\Files\Event\LoadAdditionalScriptsEvent;
use OCA\Retro\AppInfo\Application;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventListener;
use OCP\Util;
/**
* @implements IEventListener<Event>
*/
class LoadAdditionalScriptsListener implements IEventListener
{
public function handle(Event $event): void {
if ($event instanceof LoadAdditionalScriptsEvent) {
Util::addInitScript(Application::APP_ID, 'init');
}
}
}