Skip to content

Commit

Permalink
events don't register themselves one their own...
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
  • Loading branch information
Julien Veyssier committed Aug 30, 2022
1 parent 42dcde8 commit dc76019
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@

namespace OCA\Spacedeck\AppInfo;

use OCA\Spacedeck\Listener\AddContentSecurityPolicyListener;
use OCP\AppFramework\Services\IInitialState;
use OCP\IConfig;
use OCP\Security\CSP\AddContentSecurityPolicyEvent;
use OCP\Util;
use OCP\AppFramework\App;
use OCP\AppFramework\Bootstrap\IRegistrationContext;
Expand Down Expand Up @@ -82,6 +84,7 @@ private function loadFilesScripts() {
}

public function register(IRegistrationContext $context): void {
$context->registerEventListener(AddContentSecurityPolicyEvent::class, AddContentSecurityPolicyListener::class);
}

public function boot(IBootContext $context): void {
Expand Down

0 comments on commit dc76019

Please sign in to comment.