aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/app/core/plugins/plugin.service.ts5
-rw-r--r--client/src/standalone/videos/shared/peertube-plugin.ts1
-rw-r--r--client/src/types/register-client-option.model.ts3
3 files changed, 9 insertions, 0 deletions
diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts
index dadc2a41d..1e79cbf79 100644
--- a/client/src/app/core/plugins/plugin.service.ts
+++ b/client/src/app/core/plugins/plugin.service.ts
@@ -202,6 +202,11 @@ export class PluginService implements ClientHook {
202 return environment.apiUrl + `${pathPrefix}/${plugin.name}/${plugin.version}/router` 202 return environment.apiUrl + `${pathPrefix}/${plugin.name}/${plugin.version}/router`
203 }, 203 },
204 204
205 getBaseWebSocketRoute: () => {
206 const pathPrefix = PluginsManager.getPluginPathPrefix(pluginInfo.isTheme)
207 return environment.apiUrl + `${pathPrefix}/${plugin.name}/${plugin.version}/ws`
208 },
209
205 getBasePluginClientPath: () => { 210 getBasePluginClientPath: () => {
206 return '/p' 211 return '/p'
207 }, 212 },
diff --git a/client/src/standalone/videos/shared/peertube-plugin.ts b/client/src/standalone/videos/shared/peertube-plugin.ts
index 968854ce8..daf6f2b03 100644
--- a/client/src/standalone/videos/shared/peertube-plugin.ts
+++ b/client/src/standalone/videos/shared/peertube-plugin.ts
@@ -43,6 +43,7 @@ export class PeerTubePlugin {
43 return { 43 return {
44 getBaseStaticRoute: unimplemented, 44 getBaseStaticRoute: unimplemented,
45 getBaseRouterRoute: unimplemented, 45 getBaseRouterRoute: unimplemented,
46 getBaseWebSocketRoute: unimplemented,
46 getBasePluginClientPath: unimplemented, 47 getBasePluginClientPath: unimplemented,
47 48
48 getSettings: () => { 49 getSettings: () => {
diff --git a/client/src/types/register-client-option.model.ts b/client/src/types/register-client-option.model.ts
index 2460a7499..2c09f15a7 100644
--- a/client/src/types/register-client-option.model.ts
+++ b/client/src/types/register-client-option.model.ts
@@ -24,6 +24,9 @@ export type RegisterClientHelpers = {
24 24
25 getBaseRouterRoute: () => string 25 getBaseRouterRoute: () => string
26 26
27 // PeerTube >= 5.0
28 getBaseWebSocketRoute: () => string
29
27 getBasePluginClientPath: () => string 30 getBasePluginClientPath: () => string
28 31
29 isLoggedIn: () => boolean 32 isLoggedIn: () => boolean