We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f912d8e commit 36af00cCopy full SHA for 36af00c
src/pages/download.astro
@@ -18,15 +18,6 @@ import ProseCard from "../components/ui/ProseCard.astro";
18
</MainLayout>
19
20
<script>
21
- const { userAgent, platform } = navigator;
22
- const ua = userAgent.toLowerCase();
23
- const p = platform.toLowerCase();
24
-
25
- if (ua.includes("windows") || p.includes("win")) {
26
- window.location.href = "/download/windows";
27
- } else if (ua.includes("mac") || p.includes("mac")) {
28
- window.location.href = "/download/macos";
29
- } else {
30
- window.location.href = "/download/linux";
31
- }
+ import { determineDownloadLink } from "../scripts/downloads";
+ window.location.href = determineDownloadLink();
32
</script>
0 commit comments