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'
|
||||
? item
|
||||
: (item.startsWith('http') || item.startsWith('/'))
|
||||
? await legacyLoadExternalModule(window.externalModules[item])
|
||||
? await legacyLoadExternalModule(item)
|
||||
: (await loadModule(item)).apply;
|
||||
if (typeof apply !== 'function') apply = apply.default || apply.apply;
|
||||
if (typeof apply === 'function') await apply(monaco);
|
||||
|
||||
Reference in new issue
Block a user