From c360e6cc1a4053dfc76655496771593255051625 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 9 Sep 2022 11:31:35 +0200 Subject: Fix removeListener if player embed api --- client/src/standalone/player/events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') 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 } -- cgit v1.2.3