refactor: Update download.tsx to use "WindowsInstaller" instead of "WindowsZip" in select options
This commit is contained in:
@@ -19,7 +19,7 @@ function getDefaultPlatformBasedOnUserAgent() {
|
|||||||
userAgent = window.navigator.userAgent;
|
userAgent = window.navigator.userAgent;
|
||||||
}
|
}
|
||||||
if (userAgent.includes("Win")) {
|
if (userAgent.includes("Win")) {
|
||||||
return "WindowsZip";
|
return "WindowsInstaller";
|
||||||
}
|
}
|
||||||
if (userAgent.includes("Mac")) {
|
if (userAgent.includes("Mac")) {
|
||||||
return "MacOS";
|
return "MacOS";
|
||||||
@@ -97,7 +97,7 @@ export default function DownloadPage() {
|
|||||||
<SelectContent>
|
<SelectContent>
|
||||||
<SelectGroup>
|
<SelectGroup>
|
||||||
<SelectLabel>Operating System</SelectLabel>
|
<SelectLabel>Operating System</SelectLabel>
|
||||||
<SelectItem value="Windows" disabled>Windows Installer</SelectItem>
|
<SelectItem value="WindowsInstaller">Windows Installer</SelectItem>
|
||||||
<SelectItem value="WindowsZip">Windows (Zip)</SelectItem>
|
<SelectItem value="WindowsZip">Windows (Zip)</SelectItem>
|
||||||
<SelectItem value="MacOS" disabled>MacOS</SelectItem>
|
<SelectItem value="MacOS" disabled>MacOS</SelectItem>
|
||||||
<SelectItem value="Linux">Linux</SelectItem>
|
<SelectItem value="Linux">Linux</SelectItem>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
export const releases: any = {
|
export const releases: any = {
|
||||||
|
WindowsInstaller: "zen.installer.exe",
|
||||||
WindowsZip: "zen.win64.zip",
|
WindowsZip: "zen.win64.zip",
|
||||||
//MacOS: [],
|
//MacOS: [],
|
||||||
Linux: "zen.linux.tar.bz2",
|
Linux: "zen.linux.tar.bz2",
|
||||||
|
|||||||
Reference in New Issue
Block a user