Fix: unregistring a plugin did not remove properly his hooks.

This commit is contained in:
John Livingston 2020-01-16 18:49:03 +01:00 committed by Chocobozzz
parent 96a4a7c332
commit 98da1a7b4a
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ export class PluginManager implements ServerHook {
// Remove hooks of this plugin
for (const key of Object.keys(this.hooks)) {
this.hooks[key] = this.hooks[key].filter(h => h.pluginName !== npmName)
this.hooks[key] = this.hooks[key].filter(h => h.npmName !== npmName)
}
this.reinitVideoConstants(plugin.npmName)