ui: fix legacy module load

pull/532/head^2
undefined 2 years ago
parent c92d03e204
commit aa044ee6d9
No known key found for this signature in database

@ -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);

@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.48.13",
"version": "4.48.14",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "index.ts",

Loading…
Cancel
Save