mirror of
https://git.suyu.dev/suyu/website.git
synced 2025-12-22 13:46:09 +01:00
fix timeout (oopsie)
This commit is contained in:
parent
70ac650c7e
commit
b7df6dadd6
1 changed files with 3 additions and 4 deletions
|
|
@ -19,8 +19,7 @@
|
||||||
// Variables
|
// Variables
|
||||||
const UA = navigator.userAgent;
|
const UA = navigator.userAgent;
|
||||||
const url = `https://git.suyu.dev/api/v1/repos/suyu/suyu/tags`;
|
const url = `https://git.suyu.dev/api/v1/repos/suyu/suyu/tags`;
|
||||||
const developerMode = false;
|
const fakeVersionTag = false;
|
||||||
let timeout = 3000;
|
|
||||||
let latestRelease = "";
|
let latestRelease = "";
|
||||||
|
|
||||||
// Infinite timeout to test download workflow, comment out or disable developerMode if you don't want this
|
// Infinite timeout to test download workflow, comment out or disable developerMode if you don't want this
|
||||||
|
|
@ -59,7 +58,7 @@
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!developerMode) {
|
if (!fakeVersionTag) {
|
||||||
latestRelease = await getTag();
|
latestRelease = await getTag();
|
||||||
} else {
|
} else {
|
||||||
latestRelease = "v0.0.1";
|
latestRelease = "v0.0.1";
|
||||||
|
|
@ -78,7 +77,7 @@
|
||||||
} else {
|
} else {
|
||||||
window.location.href = `https://git.suyu.dev/suyu/suyu/releases/${latestRelease}/`;
|
window.location.href = `https://git.suyu.dev/suyu/suyu/releases/${latestRelease}/`;
|
||||||
}
|
}
|
||||||
}, 30000);
|
}, 3000);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue