feat(website): improve ARM detection

This commit is contained in:
Elian Doran
2025-09-30 22:20:10 +03:00
parent c74ba44b91
commit 80be4cc6b8
7 changed files with 29 additions and 8 deletions

View File

@@ -11,7 +11,9 @@ interface DownloadButtonProps {
export default function DownloadButton({ big }: DownloadButtonProps) {
const [ recommendedDownload, setRecommendedDownload ] = useState<RecommendedDownload | null>();
useEffect(() => setRecommendedDownload(getRecommendedDownload()), []);
useEffect(() => {
getRecommendedDownload()?.then(setRecommendedDownload);
}, []);
return (recommendedDownload &&
<>