From 2f0282a354dad9b49165eb635337f9b9cd7960e3 Mon Sep 17 00:00:00 2001 From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:06:00 +0100 Subject: [PATCH] fix: remove unused style Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- lib/Listener/LoadContactsFilesActions.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/Listener/LoadContactsFilesActions.php b/lib/Listener/LoadContactsFilesActions.php index 481867009..1b75a77c1 100644 --- a/lib/Listener/LoadContactsFilesActions.php +++ b/lib/Listener/LoadContactsFilesActions.php @@ -17,18 +17,11 @@ class LoadContactsFilesActions implements IEventListener { public function handle(Event $event): void { - if (!($event instanceof LoadAdditionalScriptsEvent)) { + if (!$event instanceof LoadAdditionalScriptsEvent) { return; } - Util::addStyle(Application::APP_ID, 'contacts-index'); Util::addStyle(Application::APP_ID, 'contacts-files-action'); - - // only available since Nc 28 - if (method_exists(Util::class, 'addInitScript')) { - Util::addInitScript(Application::APP_ID, 'contacts-files-action'); - } else { - Util::addScript(Application::APP_ID, 'contacts-files-action', 'files'); - } + Util::addInitScript(Application::APP_ID, 'contacts-files-action'); } }