mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix legacy module load
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -39,7 +39,7 @@ const loaders = {
|
|||||||
let apply = typeof item === 'function'
|
let apply = typeof item === 'function'
|
||||||
? item
|
? item
|
||||||
: (item.startsWith('http') || item.startsWith('/'))
|
: (item.startsWith('http') || item.startsWith('/'))
|
||||||
? await legacyLoadExternalModule(window.externalModules[item])
|
? await legacyLoadExternalModule(item)
|
||||||
: (await loadModule(item)).apply;
|
: (await loadModule(item)).apply;
|
||||||
if (typeof apply !== 'function') apply = apply.default || apply.apply;
|
if (typeof apply !== 'function') apply = apply.default || apply.apply;
|
||||||
if (typeof apply === 'function') await apply(monaco);
|
if (typeof apply === 'function') await apply(monaco);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.48.13",
|
"version": "4.48.14",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
|
|||||||
Reference in new issue
Block a user