| ... | ... | @@ -77,12 +77,10 @@ |
| 77 | 77 | const ua = navigator.userAgent; |
| 78 | 78 | if (/Win/i.test(ua)) return { os: "win", label: "Download for Windows" }; |
| 79 | 79 | if (/Mac/i.test(ua)) { |
| 80 | | const isArm = |
| 81 | | /arm|aarch/i.test(navigator.platform ?? "") || ua.includes("ARM"); |
| 82 | 80 | return { |
| 83 | 81 | os: "mac", |
| 84 | 82 | label: `Download for macOS`, |
| 85 | | arch: isArm ? "arm64" : "x64", |
| 83 | arch: "arm64", |
| 86 | 84 | }; |
| 87 | 85 | } |
| 88 | 86 | if (/Linux/i.test(ua)) return { os: "linux", label: "Download for Linux" }; |