From 1b47c359747158d8591beced581e81505eaf810a Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 23 Apr 2023 21:18:27 +0200 Subject: [PATCH] fix js load on frontend, fix #1 --- src/Frontend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Frontend.php b/src/Frontend.php index 90cee31..ed185af 100644 --- a/src/Frontend.php +++ b/src/Frontend.php @@ -35,7 +35,7 @@ class Frontend extends dcNsProcess dcCore::app()->addBehaviors([ 'initWidgets' => [Widgets::class, 'initWidgets'], - 'publicHeadContent', function (): void { + 'publicHeadContent' => function (): void { echo dcUtils::jsModuleLoad(My::id() . '/js/accordion.js') . dcUtils::cssModuleLoad(My::id() . '/css/frontend.css');