1var myInterval = setInterval(function(){console.log("mmk")}, 2000);
2
3clearInterval(myInterval); //stop that interval
1var refreshId = setInterval(function() {
2 var properID = CheckReload();
3 if (properID > 0) {
4 clearInterval(refreshId); //this stops the setInterval
5 }
6}, 10000);
7