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:
parent
9e9860d6c0
commit
bb50de268b
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue