add auth hash if available

This commit is contained in:
Isaac Connor 2017-10-19 17:52:09 -04:00
parent fece06c9e3
commit cd476192e9
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ function Monitor( monitorData ) {
this.alarmState = STATE_IDLE;
this.lastAlarmState = STATE_IDLE;
this.streamCmdParms = "view=request&request=stream&connkey="+this.connKey;
if ( auth_hash )
this.streamCmdParms += '&auth='+auth_hash;
this.streamCmdTimer = null;
this.start = function( delay ) {