|
@@ -232,7 +232,7 @@ getiLMContent();
|
|
|
|
|
|
function sleep (milliseconds) {
|
|
function sleep (milliseconds) {
|
|
var startSleep = new Date().getTime();
|
|
var startSleep = new Date().getTime();
|
|
- for (var i = 0; i < 1e7; i++) {
|
|
|
|
|
|
+ for (; ;) {
|
|
if ((new Date().getTime() - startSleep) > milliseconds) {
|
|
if ((new Date().getTime() - startSleep) > milliseconds) {
|
|
break;
|
|
break;
|
|
}
|
|
}
|