mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: support module
This commit is contained in:
1 parent
b4d77d3a2a
commit
af26bcb607
2 files changed
+2
-1
No files matched your search
@@ -33,6 +33,7 @@ async function load() {
|
||||
for (const page of UiContext.extraPages) {
|
||||
const head = document.getElementsByTagName('head')[0];
|
||||
const script = document.createElement('script');
|
||||
if (page.includes('.module.')) script.type = 'module';
|
||||
script.src = page;
|
||||
head.appendChild(script);
|
||||
tasks.push(new Promise((resolve) => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.13.4",
|
||||
"version": "4.13.5",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
Reference in new issue
Block a user