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) {
|
||||
const element = event.target as HTMLElement
|
||||
|
||||
if (
|
||||
element && element.classList &&
|
||||
(element.classList.contains('vjs-settings') || element.parentElement.classList.contains('vjs-settings'))
|
||||
) {
|
||||
if (element?.classList?.contains('vjs-settings') || element?.parentElement?.classList?.contains('vjs-settings')) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue