diff options
Diffstat (limited to 'client/src/app/core/plugins')
-rw-r--r-- | client/src/app/core/plugins/plugin.service.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts index dadc2a41d..bd8c61d9a 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 | }, |
@@ -254,11 +259,11 @@ export class PluginService implements ClientHook { | |||
254 | 259 | ||
255 | markdownRenderer: { | 260 | markdownRenderer: { |
256 | textMarkdownToHTML: (textMarkdown: string) => { | 261 | textMarkdownToHTML: (textMarkdown: string) => { |
257 | return this.markdownRenderer.textMarkdownToHTML(textMarkdown) | 262 | return this.markdownRenderer.textMarkdownToHTML({ markdown: textMarkdown }) |
258 | }, | 263 | }, |
259 | 264 | ||
260 | enhancedMarkdownToHTML: (enhancedMarkdown: string) => { | 265 | enhancedMarkdownToHTML: (enhancedMarkdown: string) => { |
261 | return this.markdownRenderer.enhancedMarkdownToHTML(enhancedMarkdown) | 266 | return this.markdownRenderer.enhancedMarkdownToHTML({ markdown: enhancedMarkdown }) |
262 | } | 267 | } |
263 | }, | 268 | }, |
264 | 269 | ||