mirror of https://github.com/Chocobozzz/PeerTube
Fix console error when watching a video
parent
06a5557979
commit
4b8463dee3
|
@ -64,10 +64,7 @@ class SettingsButton extends Button {
|
||||||
onDocumentClick (event: MouseEvent) {
|
onDocumentClick (event: MouseEvent) {
|
||||||
const element = event.target as HTMLElement
|
const element = event.target as HTMLElement
|
||||||
|
|
||||||
if (
|
if (element?.classList?.contains('vjs-settings') || element?.parentElement?.classList?.contains('vjs-settings')) {
|
||||||
element && element.classList &&
|
|
||||||
(element.classList.contains('vjs-settings') || element.parentElement.classList.contains('vjs-settings'))
|
|
||||||
) {
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue