FIx logic inversion rand updating

pull/4342/merge
Isaac Connor 2025-09-25 21:12:47 -04:00
parent e7a52aecde
commit 2e16eb92a8
1 changed files with 1 additions and 1 deletions

View File

@ -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) {