FIx logic inversion rand updating
parent
e7a52aecde
commit
2e16eb92a8
|
@ -1154,7 +1154,7 @@ function MonitorStream(monitorData) {
|
|||
// Try to reload the image stream.
|
||||
if (stream.src) {
|
||||
console.log('Reloading stream: ' + stream.src);
|
||||
let src = (-1==stream.src.indexOf('rand=')) ? stream.src.replace(/rand=\d+/i, 'rand='+Math.floor((Math.random() * 1000000) )) : '&rand='+Math.floor((Math.random() * 1000000));
|
||||
let src = (-1 != stream.src.indexOf('rand=')) ? stream.src.replace(/rand=\d+/i, 'rand='+Math.floor((Math.random() * 1000000) )) : '&rand='+Math.floor((Math.random() * 1000000));
|
||||
src = src.replace(/auth=\w+/i, 'auth='+auth_hash);
|
||||
// Maybe updated auth
|
||||
if (src != stream.src) {
|
||||
|
|
Loading…
Reference in New Issue