From 691f9a70f91144d4f5974ff1b63dad2430515bc5 Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Mon, 7 Dec 2020 14:44:45 -0600 Subject: [PATCH] eslint --- web/skins/classic/views/js/watch.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/skins/classic/views/js/watch.js b/web/skins/classic/views/js/watch.js index b67e70c1a..84c0382dd 100644 --- a/web/skins/classic/views/js/watch.js +++ b/web/skins/classic/views/js/watch.js @@ -131,7 +131,7 @@ function changeScale() { streamImg.width( newWidth ); streamImg.height( newHeight ); - streamImg.src = oldSrc; + streamImg.src = newSrc; } else { console.error('No element found for liveStream'+monitorId); } @@ -294,7 +294,7 @@ function getStreamCmdResponse(respObj, respText) { if ( streamImg ) { var oldSrc = streamImg.attr('src'); var newSrc = oldSrc.replace(/auth=\w+/i, 'auth='+streamStatus.auth); - streamImg.src = newSrc; + streamImg.src = newSrc; } streamCmdParms = streamCmdParms.replace(/auth=\w+/i, 'auth='+streamStatus.auth); statusCmdParms = statusCmdParms.replace(/auth=\w+/i, 'auth='+streamStatus.auth); @@ -655,7 +655,7 @@ function handleClick( event ) { var target = event.target; var width = $j(target).width(); var height = $j(target).height(); - + var scaleX = parseInt(monitorWidth / width); var scaleY = parseInt(monitorHeight / height); var x = (event.page.x - target.getLeft()) * scaleX;