remove test/javascript

This commit is contained in:
Yuri Kuznetsov
2024-11-23 13:40:49 +02:00
parent 113bf0feec
commit 77f07c79e5
3 changed files with 2 additions and 4 deletions

View File

@@ -347,7 +347,7 @@ class ClientManager
}
return $this->getTabHtml() .
"<script type=\"text/javascript\" src=\"$src\" data-base-path=\"$this->basePath\"$noncePart></script>";
"<script src=\"$src\" data-base-path=\"$this->basePath\"$noncePart></script>";
}
private function getCssItemHtml(string $file, int $appTimestamp): string

View File

@@ -847,8 +847,6 @@
src = this._basePath + src;
const scriptEl = document.createElement('script');
scriptEl.setAttribute('type', 'text/javascript')
scriptEl.setAttribute('src', src);
scriptEl.addEventListener('error', event => {

View File

@@ -12,7 +12,7 @@
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="alternate icon" href="{{basePath}}{{faviconAlternate}}" type="image/x-icon">
<link rel="icon" href="{{basePath}}{{favicon}}" type="{{faviconType}}">
<script type="text/javascript" nonce="{{nonce}}">
<script nonce="{{nonce}}">
window.addEventListener('DOMContentLoaded', () => {
require('{{appClientClassName}}', App => {
new App({