mirror of
https://github.com/Karaka-Management/oms-Comments.git
synced 2026-02-15 16:58:43 +00:00
lighthouse improvements
This commit is contained in:
parent
f8b124fa27
commit
2af6e5cd41
|
|
@ -50,8 +50,10 @@ final class BackendController extends Controller
|
||||||
*/
|
*/
|
||||||
public function setUpCommentEditor(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void
|
public function setUpCommentEditor(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void
|
||||||
{
|
{
|
||||||
$head = $response->data['Content']->head;
|
$head = $response->data['Content']->head;
|
||||||
$head->addAsset(AssetType::JS, '/Modules/Editor/Controller.js', ['type' => 'module']);
|
$nonce = $this->app->appSettings->getOption('script-nonce');
|
||||||
|
|
||||||
|
$head->addAsset(AssetType::JS, '/Modules/Editor/Controller.js', ['nonce' => $nonce, 'type' => 'module']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user