diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-17 14:42:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-18 08:35:06 +0200 |
commit | 9df52d660feb722404be00a50f3c8a612bec1c15 (patch) | |
tree | dde52880fa012874d24c60f64eb596b0a789cc8b /client/src/root-helpers/plugins-manager.ts | |
parent | adb8809d43648ea0a64d6845bb39aa3bd0e005a6 (diff) | |
download | PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.tar.gz PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.tar.zst PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.zip |
Migrate client to eslint
Diffstat (limited to 'client/src/root-helpers/plugins-manager.ts')
-rw-r--r-- | client/src/root-helpers/plugins-manager.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/root-helpers/plugins-manager.ts b/client/src/root-helpers/plugins-manager.ts index d14ac4acd..f1687d91d 100644 --- a/client/src/root-helpers/plugins-manager.ts +++ b/client/src/root-helpers/plugins-manager.ts | |||
@@ -155,7 +155,7 @@ class PluginsManager { | |||
155 | try { | 155 | try { |
156 | if (!isReload) this.loadedScopes.push(scope) | 156 | if (!isReload) this.loadedScopes.push(scope) |
157 | 157 | ||
158 | const toLoad = this.scopes[ scope ] | 158 | const toLoad = this.scopes[scope] |
159 | if (!Array.isArray(toLoad)) { | 159 | if (!Array.isArray(toLoad)) { |
160 | this.loadingScopes[scope] = false | 160 | this.loadingScopes[scope] = false |
161 | this.pluginsLoaded[scope].next(true) | 161 | this.pluginsLoaded[scope].next(true) |
@@ -168,11 +168,11 @@ class PluginsManager { | |||
168 | for (const pluginInfo of toLoad) { | 168 | for (const pluginInfo of toLoad) { |
169 | const clientScript = pluginInfo.clientScript | 169 | const clientScript = pluginInfo.clientScript |
170 | 170 | ||
171 | if (this.loadedScripts[ clientScript.script ]) continue | 171 | if (this.loadedScripts[clientScript.script]) continue |
172 | 172 | ||
173 | promises.push(this.loadPlugin(pluginInfo)) | 173 | promises.push(this.loadPlugin(pluginInfo)) |
174 | 174 | ||
175 | this.loadedScripts[ clientScript.script ] = true | 175 | this.loadedScripts[clientScript.script] = true |
176 | } | 176 | } |
177 | 177 | ||
178 | await Promise.all(promises) | 178 | await Promise.all(promises) |