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