refactor: Update download.tsx to use "WindowsStubInstaller" instead of "WindowsInstaller" in select options

This commit is contained in:
Mauro Balades 2024-07-12 19:33:16 +02:00
parent e33bb2477c
commit a89a618cf2

View file

@ -22,12 +22,14 @@ function getDefaultPlatformBasedOnUserAgent() {
return "WindowsInstaller"; return "WindowsInstaller";
} }
if (userAgent.includes("Mac")) { if (userAgent.includes("Mac")) {
return "MacOS"; // TODO:
// return "MacOS";
return "";
} }
if (userAgent.includes("Linux")) { if (userAgent.includes("Linux")) {
return "Linux"; return "Linux";
} }
return "WindowsInstaller"; return "";
} }
const formSchema = z.object({ const formSchema = z.object({