refactor: Update download.tsx to use "WindowsStubInstaller" instead of "WindowsInstaller" in select options
This commit is contained in:
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user