Fix setting img.src to new url. Won't have any effect here as we are reloading the whole page.

This commit is contained in:
Isaac Connor 2021-01-11 15:21:39 -05:00
parent 9e9860d6c0
commit bb50de268b
1 changed files with 2 additions and 2 deletions

View File

@ -290,8 +290,8 @@ function getStreamCmdResponse(respObj, respText) {
var oldSrc = streamImg.attr('src'); var oldSrc = streamImg.attr('src');
var newSrc = oldSrc.replace(/rand=\d+/i, 'rand='+Math.floor((Math.random() * 1000000) )); var newSrc = oldSrc.replace(/rand=\d+/i, 'rand='+Math.floor((Math.random() * 1000000) ));
streamImg.src = newSrc; streamImg.attr('src', newSrc);
console.log('Changing livestream src to ' + streamImg.src); console.log('Changing livestream src to ' + newSrc);
} else { } else {
console.log('Unable to find streamImg liveStream'); console.log('Unable to find streamImg liveStream');
} }