Skip to content

Commit

Permalink
Merge 5493404 into 1b161c2
Browse files Browse the repository at this point in the history
  • Loading branch information
GretaD authored Nov 1, 2023
2 parents 1b161c2 + 5493404 commit bb0e8ae
Show file tree
Hide file tree
Showing 5 changed files with 440 additions and 32 deletions.
7 changes: 6 additions & 1 deletion lib/Listener/LoadContactsFilesActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ public function handle(Event $event): void {
return;
}

Util::addScript(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');

Check warning on line 43 in lib/Listener/LoadContactsFilesActions.php

View check run for this annotation

Codecov / codecov/patch

lib/Listener/LoadContactsFilesActions.php#L42-L43

Added lines #L42 - L43 were not covered by tests
} else {
Util::addScript(Application::APP_ID, 'contacts-files-action');

Check warning on line 45 in lib/Listener/LoadContactsFilesActions.php

View check run for this annotation

Codecov / codecov/patch

lib/Listener/LoadContactsFilesActions.php#L45

Added line #L45 was not covered by tests
}
}
}
Loading

0 comments on commit bb0e8ae

Please sign in to comment.