Skip to content
Snippets Groups Projects
Commit 98da1a7b authored by John Livingston's avatar John Livingston Committed by Chocobozzz
Browse files

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

parent 96a4a7c3
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment