From 954966abbb144e1d6fb58d5d323d3fa19b22a57a Mon Sep 17 00:00:00 2001 From: DispatchCommit Date: Fri, 19 Mar 2021 18:00:11 -0700 Subject: [PATCH] fix linting errors --- .../viewers/videoViewer/internal/videojs.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/component/viewers/videoViewer/internal/videojs.jsx b/ui/component/viewers/videoViewer/internal/videojs.jsx index bedaa2005..a3834ea43 100644 --- a/ui/component/viewers/videoViewer/internal/videojs.jsx +++ b/ui/component/viewers/videoViewer/internal/videojs.jsx @@ -363,13 +363,13 @@ export default React.memo(function VideoJs(props: Props) { videoNode.muted = !videoNode.muted; } if (e.keyCode === VOLUME_DOWN_KEYCODE) { - player.volume(player.volume()-0.05); - OVERLAY.showVolumeverlay(player, Math.round(player.volume()*100)); + player.volume(player.volume() - 0.05); + OVERLAY.showVolumeverlay(player, Math.round(player.volume() * 100)); player.userActive(true); - } + } if (e.keyCode === VOLUME_UP_KEYCODE) { - player.volume(player.volume()+0.05); - OVERLAY.showVolumeverlay(player, Math.round(player.volume()*100)); + player.volume(player.volume() + 0.05); + OVERLAY.showVolumeverlay(player, Math.round(player.volume() * 100)); player.userActive(true); } @@ -387,7 +387,7 @@ export default React.memo(function VideoJs(props: Props) { videoNode.currentTime = newDuration < 0 ? 0 : newDuration; OVERLAY.showSeekedOverlay(player, SEEK_STEP, false); player.userActive(true); - } + } if (e.keyCode === SEEK_FORWARD_KEYCODE_5) { const newDuration = currentTime + SEEK_STEP_5; videoNode.currentTime = newDuration < 0 ? 0 : newDuration;