diff options
Diffstat (limited to 'server/lib/plugins/plugin-manager.ts')
-rw-r--r-- | server/lib/plugins/plugin-manager.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/lib/plugins/plugin-manager.ts b/server/lib/plugins/plugin-manager.ts index 7576b284c..9e4ec5adf 100644 --- a/server/lib/plugins/plugin-manager.ts +++ b/server/lib/plugins/plugin-manager.ts | |||
@@ -55,6 +55,10 @@ export class PluginManager { | |||
55 | 55 | ||
56 | // ###################### Getters ###################### | 56 | // ###################### Getters ###################### |
57 | 57 | ||
58 | isRegistered (npmName: string) { | ||
59 | return !!this.getRegisteredPluginOrTheme(npmName) | ||
60 | } | ||
61 | |||
58 | getRegisteredPluginOrTheme (npmName: string) { | 62 | getRegisteredPluginOrTheme (npmName: string) { |
59 | return this.registeredPlugins[npmName] | 63 | return this.registeredPlugins[npmName] |
60 | } | 64 | } |