mirror of
https://github.com/Karaka-Management/oms-Comments.git
synced 2026-01-11 16:18:41 +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
|
||||
{
|
||||
$head = $response->data['Content']->head;
|
||||
$head->addAsset(AssetType::JS, '/Modules/Editor/Controller.js', ['type' => 'module']);
|
||||
$head = $response->data['Content']->head;
|
||||
$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