diff --git a/client/src/standalone/player/events.ts b/client/src/standalone/player/events.ts index 7a8e9dbec..77d21c78c 100644 --- a/client/src/standalone/player/events.ts +++ b/client/src/standalone/player/events.ts @@ -41,7 +41,7 @@ export class EventRegistrar { public removeListener (name: string, handler: EventHandler) { if (!this.eventRegistrations[name]) return false - this.eventRegistrations[name].registrations = this.eventRegistrations[name].registrations.filter(x => x === handler) + this.eventRegistrations[name].registrations = this.eventRegistrations[name].registrations.filter(x => x !== handler) return true }