CaCO3 3 лет назад
Родитель
Сommit
44e186e65b
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      sd-card/html/backup.html

+ 7 - 1
sd-card/html/backup.html

@@ -121,9 +121,15 @@ function fetchFiles(urls, filesData, index, retry, zipFilename) {
     else if (retry == 1) { // longer timeout
         xhr.timeout = 5000; // time in milliseconds
     }
-    else { // very long timeout
+    else if (retry == 2) { // longer timeout
         xhr.timeout = 20000; // time in milliseconds
     }
+    else if (retry == 3) { // longer timeout
+        xhr.timeout = 30000; // time in milliseconds
+    }
+    else { // very long timeout
+        xhr.timeout = 60000; // time in milliseconds
+    }
 
     xhr.onload = () => { // Request finished
         //console.log(url + " done");