Skip to content

Commit

Permalink
Update auth in zms url when scaling as it may have been running for a…
Browse files Browse the repository at this point in the history
… while and need updating
  • Loading branch information
Isaac Connor committed Aug 22, 2024
1 parent 65156ad commit 1e4bb47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/js/MonitorStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ function MonitorStream(monitorData) {
console.log('No src on img?!', img);
return;
}
const newSrc = oldSrc.replace(/scale=\d+/i, 'scale='+newscale);
let newSrc = oldSrc.replace(/scale=\d+/i, 'scale='+newscale);
newSrc = newSrc.replace(/auth=\w+/i, 'auth='+auth_hash);
if (newSrc != oldSrc) {
this.streamCmdTimer = clearTimeout(this.streamCmdTimer);
// We know that only the first zms will get the command because the
Expand Down

0 comments on commit 1e4bb47

Please sign in to comment.