aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-29 18:03:55 +0200
committerChocobozzz <me@florianbigard.com>2021-06-29 18:03:55 +0200
commit4b8463dee32f2b7c460aa3a8d74dfcf5de160acf (patch)
tree0cb78632ac2ade04c9fa9957d8d3113cb7936af6 /client
parent06a555797929d4867264b096c8420cdedd50f496 (diff)
downloadPeerTube-4b8463dee32f2b7c460aa3a8d74dfcf5de160acf.tar.gz
PeerTube-4b8463dee32f2b7c460aa3a8d74dfcf5de160acf.tar.zst
PeerTube-4b8463dee32f2b7c460aa3a8d74dfcf5de160acf.zip
Fix console error when watching a video
Diffstat (limited to 'client')
-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