mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +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) => {
|
||||
|
||||
Reference in new issue
Block a user