fix timeout (oopsie)

This commit is contained in:
million1156 2024-03-25 14:00:35 -05:00
parent 70ac650c7e
commit b7df6dadd6

View file

@ -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>