diff options
Diffstat (limited to 'client/src/root-helpers/plugins-manager.ts')
-rw-r--r-- | client/src/root-helpers/plugins-manager.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/root-helpers/plugins-manager.ts b/client/src/root-helpers/plugins-manager.ts index f99c7598d..fd7b5233b 100644 --- a/client/src/root-helpers/plugins-manager.ts +++ b/client/src/root-helpers/plugins-manager.ts | |||
@@ -317,7 +317,7 @@ async function dynamicImport (url: string) { | |||
317 | const script = document.createElement('script') | 317 | const script = document.createElement('script') |
318 | 318 | ||
319 | const destructor = () => { | 319 | const destructor = () => { |
320 | delete window[vector] | 320 | delete window[vector as any] |
321 | script.onerror = null | 321 | script.onerror = null |
322 | script.onload = null | 322 | script.onload = null |
323 | script.remove() | 323 | script.remove() |
@@ -333,7 +333,7 @@ async function dynamicImport (url: string) { | |||
333 | destructor() | 333 | destructor() |
334 | } | 334 | } |
335 | script.onload = () => { | 335 | script.onload = () => { |
336 | resolve(window[vector]) | 336 | resolve(window[vector as any]) |
337 | destructor() | 337 | destructor() |
338 | } | 338 | } |
339 | const loader = `import * as m from "${url}"; window.${vector} = m;` // export Module | 339 | const loader = `import * as m from "${url}"; window.${vector} = m;` // export Module |