Add another clearInterval to prevent looping during window.location
This commit is contained in:
parent
9b0714d20d
commit
6fc5803e16
|
@ -965,6 +965,7 @@ var secondsToCycle = 0;
|
|||
function nextCycleView() {
|
||||
secondsToCycle --;
|
||||
if (secondsToCycle<=0) {
|
||||
clearInterval(intervalId);
|
||||
secondsToCycle = 0;
|
||||
window.location.replace('?view=watch&mid='+nextMid+'&mode='+mode+'&cycle=true');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue