Skip to content

Commit 6dd4a39

Browse files
committed
[release page] wait 2s on error before going back home
1 parent 508f89b commit 6dd4a39

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

home/latest-release.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ if (typeof window !== 'undefined') {
1818
window.location.href = "/";
1919
} catch (error) {
2020
console.error("Error fetching latest release:", error);
21+
await delay(5000)
2122
window.location.href = "/";
2223
}
2324
};
@@ -26,4 +27,4 @@ if (typeof window !== 'undefined') {
2627
}
2728
</script>
2829

29-
<p>Redirecting to the latest release page...</p>
30+
# Redirecting to the latest release page...

home/pre-release.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ if (typeof window !== 'undefined') {
1818
window.location.href = "/";
1919
} catch (error) {
2020
console.error("Error fetching pre-release:", error);
21+
await delay(5000)
2122
window.location.href = "/";
2223
}
2324
};
@@ -26,4 +27,4 @@ if (typeof window !== 'undefined') {
2627
}
2728
</script>
2829

29-
<p>Redirecting to the preview release page...</p>
30+
# Redirecting to the preview release page...

0 commit comments

Comments
 (0)