aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/player/events.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-09-09 11:31:35 +0200
committerChocobozzz <me@florianbigard.com>2022-09-09 11:31:35 +0200
commitc360e6cc1a4053dfc76655496771593255051625 (patch)
treee971023ca043d02fe19725a430f259f0d95dd199 /client/src/standalone/player/events.ts
parent3d2e4f037125deb4711616ef6f9fa463b432ff3d (diff)
downloadPeerTube-c360e6cc1a4053dfc76655496771593255051625.tar.gz
PeerTube-c360e6cc1a4053dfc76655496771593255051625.tar.zst
PeerTube-c360e6cc1a4053dfc76655496771593255051625.zip
Fix removeListener if player embed api
Diffstat (limited to 'client/src/standalone/player/events.ts')
-rw-r--r--client/src/standalone/player/events.ts2
1 files changed, 1 insertions, 1 deletions
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 {
41 public removeListener<T> (name: string, handler: EventHandler<T>) { 41 public removeListener<T> (name: string, handler: EventHandler<T>) {
42 if (!this.eventRegistrations[name]) return false 42 if (!this.eventRegistrations[name]) return false
43 43
44 this.eventRegistrations[name].registrations = this.eventRegistrations[name].registrations.filter(x => x === handler) 44 this.eventRegistrations[name].registrations = this.eventRegistrations[name].registrations.filter(x => x !== handler)
45 45
46 return true 46 return true
47 } 47 }