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 { 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 }