mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix player settings dispose
This commit is contained in:
parent
36217ac537
commit
36d9a79f7b
@ -95,11 +95,6 @@ class SettingsButton extends Button {
|
||||
}
|
||||
}
|
||||
|
||||
document.removeEventListener('click', this.documentClickHandler)
|
||||
if (this.isInIframe()) {
|
||||
window.removeEventListener('blur', this.documentClickHandler)
|
||||
}
|
||||
|
||||
this.hideDialog()
|
||||
|
||||
if (this.settingsButtonOptions.entries.length === 0) {
|
||||
@ -107,6 +102,14 @@ class SettingsButton extends Button {
|
||||
}
|
||||
}
|
||||
|
||||
dispose () {
|
||||
document.removeEventListener('click', this.documentClickHandler)
|
||||
|
||||
if (this.isInIframe()) {
|
||||
window.removeEventListener('blur', this.documentClickHandler)
|
||||
}
|
||||
}
|
||||
|
||||
onAddSettingsItem (event: any, data: any) {
|
||||
const [ entry, options ] = data
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user