Fix console error when watching a video
This commit is contained in:
parent
06a5557979
commit
4b8463dee3
1 changed files with 1 additions and 4 deletions
|
@ -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 a new issue