Browse Source

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

John Livingston 4 years ago
parent
commit
98da1a7b4a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/lib/plugins/plugin-manager.ts

+ 1 - 1
server/lib/plugins/plugin-manager.ts

@@ -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)