mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-12-01 12:59:15 -06:00
Fix removeListener if player embed api
This commit is contained in:
parent
3d2e4f0371
commit
c360e6cc1a
@ -41,7 +41,7 @@ export class EventRegistrar {
|
||||
public removeListener<T> (name: string, handler: EventHandler<T>) {
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user