diff options
Diffstat (limited to 'client/src/app/core')
-rw-r--r-- | client/src/app/core/plugins/plugin.service.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts index 14310f093..7c1d69bec 100644 --- a/client/src/app/core/plugins/plugin.service.ts +++ b/client/src/app/core/plugins/plugin.service.ts | |||
@@ -28,6 +28,7 @@ export class PluginService implements ClientHook { | |||
28 | 28 | ||
29 | pluginsLoaded: { [ scope in PluginClientScope ]: ReplaySubject<boolean> } = { | 29 | pluginsLoaded: { [ scope in PluginClientScope ]: ReplaySubject<boolean> } = { |
30 | common: new ReplaySubject<boolean>(1), | 30 | common: new ReplaySubject<boolean>(1), |
31 | search: new ReplaySubject<boolean>(1), | ||
31 | 'video-watch': new ReplaySubject<boolean>(1) | 32 | 'video-watch': new ReplaySubject<boolean>(1) |
32 | } | 33 | } |
33 | 34 | ||
@@ -109,7 +110,11 @@ export class PluginService implements ClientHook { | |||
109 | if (!isReload) this.loadedScopes.push(scope) | 110 | if (!isReload) this.loadedScopes.push(scope) |
110 | 111 | ||
111 | const toLoad = this.scopes[ scope ] | 112 | const toLoad = this.scopes[ scope ] |
112 | if (!Array.isArray(toLoad)) return | 113 | if (!Array.isArray(toLoad)) { |
114 | this.pluginsLoaded[scope].next(true) | ||
115 | |||
116 | return | ||
117 | } | ||
113 | 118 | ||
114 | const promises: Promise<any>[] = [] | 119 | const promises: Promise<any>[] = [] |
115 | for (const pluginInfo of toLoad) { | 120 | for (const pluginInfo of toLoad) { |