mirror of
https://github.com/Karaka-Management/oms-Draw.git
synced 2026-02-15 14:48:40 +00:00
lighthouse improvements
This commit is contained in:
parent
ff8b7b7bf8
commit
368b99212c
|
|
@ -48,10 +48,12 @@ final class BackendController extends Controller
|
||||||
public function setUpDrawEditor(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void
|
public function setUpDrawEditor(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void
|
||||||
{
|
{
|
||||||
/** @var \phpOMS\Model\Html\Head $head */
|
/** @var \phpOMS\Model\Html\Head $head */
|
||||||
$head = $response->data['Content']->head;
|
$head = $response->data['Content']->head;
|
||||||
$head->addAsset(AssetType::JSLATE, 'Modules/Draw/Controller.js?v=1.0.0');
|
$nonce = $this->app->appSettings->getOption('script-nonce');
|
||||||
$head->addAsset(AssetType::JSLATE, 'Modules/Draw/Models/DrawType.js?v=1.0.0');
|
|
||||||
$head->addAsset(AssetType::JSLATE, 'Modules/Draw/Models/Editor.js?v=1.0.0');
|
$head->addAsset(AssetType::JSLATE, 'Modules/Draw/Controller.js?v=1.0.0', ['nonce' => $nonce]);
|
||||||
|
$head->addAsset(AssetType::JSLATE, 'Modules/Draw/Models/DrawType.js?v=1.0.0', ['nonce' => $nonce]);
|
||||||
|
$head->addAsset(AssetType::JSLATE, 'Modules/Draw/Models/Editor.js?v=1.0.0', ['nonce' => $nonce]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user