Fix eslint warnings

This commit is contained in:
Isaac Connor 2019-08-27 16:48:42 -04:00
parent cdb8e056b6
commit dfb65d23bf
2 changed files with 16 additions and 15 deletions

View File

@ -201,8 +201,9 @@ function changeReplayMode() {
} }
var streamParms = "view=request&request=stream&connkey="+connKey; var streamParms = "view=request&request=stream&connkey="+connKey;
if ( auth_hash ) if ( auth_hash ) {
streamParms += '&auth='+auth_hash; streamParms += '&auth='+auth_hash;
}
var streamCmdTimer = null; var streamCmdTimer = null;
var streamStatus = null; var streamStatus = null;
@ -312,7 +313,6 @@ function playClicked( ) {
vjsPlay(); //handles fast forward and rewind vjsPlay(); //handles fast forward and rewind
} }
} else { } else {
console.log("sending"+streamParms+"&command="+CMD_PLAY);
streamReq.send(streamParms+"&command="+CMD_PLAY); streamReq.send(streamParms+"&command="+CMD_PLAY);
streamPlay(); streamPlay();
} }
@ -600,8 +600,9 @@ var eventReq = new Request.JSON( {url: thisUrl, method: 'get', timeout: AJAX_TIM
function eventQuery( eventId ) { function eventQuery( eventId ) {
var eventParms = "view=request&request=status&entity=event&id="+eventId; var eventParms = "view=request&request=status&entity=event&id="+eventId;
if ( auth_hash ) if ( auth_hash ) {
eventParms += '&auth='+auth_hash; eventParms += '&auth='+auth_hash;
}
eventReq.send( eventParms ); eventReq.send( eventParms );
} }
@ -902,8 +903,9 @@ var actReq = new Request.JSON( {url: thisUrl, method: 'get', timeout: AJAX_TIMEO
function actQuery(action, parms) { function actQuery(action, parms) {
var actParms = "view=request&request=event&id="+eventData.Id+"&action="+action; var actParms = "view=request&request=event&id="+eventData.Id+"&action="+action;
if ( auth_hash ) if ( auth_hash ) {
actParms += '&auth='+auth_hash; actParms += '&auth='+auth_hash;
}
if ( parms != null ) { if ( parms != null ) {
actParms += "&"+Object.toQueryString(parms); actParms += "&"+Object.toQueryString(parms);
} }

View File

@ -157,7 +157,6 @@ function getImageSource(monId, time) {
} else { } else {
frame_id = Frame.FrameId; frame_id = Frame.FrameId;
} }
} else { } else {
frame_id = Frame.FrameId; frame_id = Frame.FrameId;
console.log("No NextFrame"); console.log("No NextFrame");