1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Add plugins check params tests

This commit is contained in:
Chocobozzz 2019-07-18 15:56:42 +02:00 committed by Chocobozzz
parent b4055e1c23
commit 60cfd4cb54
4 changed files with 478 additions and 6 deletions

View file

@ -143,6 +143,8 @@ export class PluginManager implements ServerHook {
throw new Error(`Unknown plugin ${npmName} to unregister`)
}
delete this.registeredPlugins[plugin.npmName]
if (plugin.type === PluginType.PLUGIN) {
await plugin.unregister()
@ -154,8 +156,6 @@ export class PluginManager implements ServerHook {
logger.info('Regenerating registered plugin CSS to global file.')
await this.regeneratePluginGlobalCSS()
}
delete this.registeredPlugins[plugin.npmName]
}
// ###################### Installation ######################