diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-29 18:03:55 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-29 18:03:55 +0200 |
commit | 4b8463dee32f2b7c460aa3a8d74dfcf5de160acf (patch) | |
tree | 0cb78632ac2ade04c9fa9957d8d3113cb7936af6 /client/src | |
parent | 06a555797929d4867264b096c8420cdedd50f496 (diff) | |
download | PeerTube-4b8463dee32f2b7c460aa3a8d74dfcf5de160acf.tar.gz PeerTube-4b8463dee32f2b7c460aa3a8d74dfcf5de160acf.tar.zst PeerTube-4b8463dee32f2b7c460aa3a8d74dfcf5de160acf.zip |
Fix console error when watching a video
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/assets/player/videojs-components/settings-menu-button.ts | 5 |
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 | ||