aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/root-helpers/plugins-manager.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/client/src/root-helpers/plugins-manager.ts b/client/src/root-helpers/plugins-manager.ts
index e574e75a3..1157a274e 100644
--- a/client/src/root-helpers/plugins-manager.ts
+++ b/client/src/root-helpers/plugins-manager.ts
@@ -7,7 +7,7 @@ import { getHookType, internalRunHook } from '@shared/core-utils/plugins/hooks'
7import { 7import {
8 ClientHookName, 8 ClientHookName,
9 clientHookObject, 9 clientHookObject,
10 ClientScript, 10 ClientScriptJSON,
11 HTMLServerConfig, 11 HTMLServerConfig,
12 PluginClientScope, 12 PluginClientScope,
13 PluginType, 13 PluginType,
@@ -18,20 +18,20 @@ import {
18 RegisterClientVideoFieldOptions, 18 RegisterClientVideoFieldOptions,
19 RegisteredExternalAuthConfig, 19 RegisteredExternalAuthConfig,
20 ServerConfigPlugin 20 ServerConfigPlugin
21} from '../../../shared/models' 21} from '@shared/models'
22import { environment } from '../environments/environment' 22import { environment } from '../environments/environment'
23import { ClientScript as ClientScriptModule } from '../types/client-script.model' 23import { ClientScript } from '../types'
24 24
25interface HookStructValue extends RegisterClientHookOptions { 25interface HookStructValue extends RegisterClientHookOptions {
26 plugin: ServerConfigPlugin 26 plugin: ServerConfigPlugin
27 clientScript: ClientScript 27 clientScript: ClientScriptJSON
28} 28}
29 29
30type Hooks = { [ name: string ]: HookStructValue[] } 30type Hooks = { [ name: string ]: HookStructValue[] }
31 31
32type PluginInfo = { 32type PluginInfo = {
33 plugin: ServerConfigPlugin 33 plugin: ServerConfigPlugin
34 clientScript: ClientScript 34 clientScript: ClientScriptJSON
35 pluginType: PluginType 35 pluginType: PluginType
36 isTheme: boolean 36 isTheme: boolean
37} 37}
@@ -248,7 +248,7 @@ class PluginsManager {
248 248
249 const absURL = (environment.apiUrl || window.location.origin) + clientScript.script 249 const absURL = (environment.apiUrl || window.location.origin) + clientScript.script
250 return dynamicImport(absURL) 250 return dynamicImport(absURL)
251 .then((script: ClientScriptModule) => { 251 .then((script: ClientScript) => {
252 return script.register({ 252 return script.register({
253 registerHook, 253 registerHook,
254 registerVideoField, 254 registerVideoField,