lighthouse improvements

This commit is contained in:
Dennis Eichhorn 2023-09-26 20:49:43 +00:00
parent f8b124fa27
commit 2af6e5cd41

View File

@ -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']);
}
/**