aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/root-helpers/plugins-manager.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/root-helpers/plugins-manager.ts')
-rw-r--r--client/src/root-helpers/plugins-manager.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/client/src/root-helpers/plugins-manager.ts b/client/src/root-helpers/plugins-manager.ts
index f3416e44a..fd7b5233b 100644
--- a/client/src/root-helpers/plugins-manager.ts
+++ b/client/src/root-helpers/plugins-manager.ts
@@ -60,14 +60,14 @@ class PluginsManager {
60 private loadingScopes: { [id in PluginClientScope]?: boolean } = {} 60 private loadingScopes: { [id in PluginClientScope]?: boolean } = {}
61 61
62 private pluginsLoaded: { [ scope in PluginClientScope ]: ReplaySubject<boolean> } = { 62 private pluginsLoaded: { [ scope in PluginClientScope ]: ReplaySubject<boolean> } = {
63 common: new ReplaySubject<boolean>(1), 63 'common': new ReplaySubject<boolean>(1),
64 'admin-plugin': new ReplaySubject<boolean>(1), 64 'admin-plugin': new ReplaySubject<boolean>(1),
65 search: new ReplaySubject<boolean>(1), 65 'search': new ReplaySubject<boolean>(1),
66 'video-watch': new ReplaySubject<boolean>(1), 66 'video-watch': new ReplaySubject<boolean>(1),
67 signup: new ReplaySubject<boolean>(1), 67 'signup': new ReplaySubject<boolean>(1),
68 login: new ReplaySubject<boolean>(1), 68 'login': new ReplaySubject<boolean>(1),
69 'video-edit': new ReplaySubject<boolean>(1), 69 'video-edit': new ReplaySubject<boolean>(1),
70 embed: new ReplaySubject<boolean>(1), 70 'embed': new ReplaySubject<boolean>(1),
71 'my-library': new ReplaySubject<boolean>(1), 71 'my-library': new ReplaySubject<boolean>(1),
72 'video-channel': new ReplaySubject<boolean>(1) 72 'video-channel': new ReplaySubject<boolean>(1)
73 } 73 }
@@ -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