瀏覽代碼

Update backup.html (#2015)

CaCO3 3 年之前
父節點
當前提交
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
     else if (retry == 1) { // longer timeout
         xhr.timeout = 5000; // time in milliseconds
         xhr.timeout = 5000; // time in milliseconds
     }
     }
-    else { // very long timeout
+    else if (retry == 2) { // longer timeout
         xhr.timeout = 20000; // time in milliseconds
         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
     xhr.onload = () => { // Request finished
         //console.log(url + " done");
         //console.log(url + " done");