aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets/player')
-rw-r--r--client/src/assets/player/videojs-components/settings-menu-button.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/client/src/assets/player/videojs-components/settings-menu-button.ts b/client/src/assets/player/videojs-components/settings-menu-button.ts
index 74788a897..339420a89 100644
--- a/client/src/assets/player/videojs-components/settings-menu-button.ts
+++ b/client/src/assets/player/videojs-components/settings-menu-button.ts
@@ -64,10 +64,7 @@ class SettingsButton extends Button {
64 onDocumentClick (event: MouseEvent) { 64 onDocumentClick (event: MouseEvent) {
65 const element = event.target as HTMLElement 65 const element = event.target as HTMLElement
66 66
67 if ( 67 if (element?.classList?.contains('vjs-settings') || element?.parentElement?.classList?.contains('vjs-settings')) {
68 element && element.classList &&
69 (element.classList.contains('vjs-settings') || element.parentElement.classList.contains('vjs-settings'))
70 ) {
71 return 68 return
72 } 69 }
73 70