lighthouse improvements

This commit is contained in:
Dennis Eichhorn 2023-09-26 20:49:43 +00:00
parent f9f1c677a8
commit 76e9752de1

View File

@ -50,8 +50,10 @@ final class BackendController extends Controller
*/
public function setUpEditorEditor(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void
{
$head = $response->data['Content']->head;
$head->addAsset(AssetType::JSLATE, 'Modules/Editor/Controller.js', ['type' => 'module']);
$head = $response->data['Content']->head;
$nonce = $this->app->appSettings->getOption('script-nonce');
$head->addAsset(AssetType::JSLATE, 'Modules/Editor/Controller.js', ['nonce' => $nonce, 'type' => 'module']);
}
/**