mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 01:10:02 +02:00
refactor: Update download.tsx to use "WindowsStubInstaller" instead of "WindowsInstaller" in select options
This commit is contained in:
parent
f2648b9a20
commit
12cf6a6153
2 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,7 @@ function getDefaultPlatformBasedOnUserAgent() {
|
||||||
userAgent = window.navigator.userAgent;
|
userAgent = window.navigator.userAgent;
|
||||||
}
|
}
|
||||||
if (userAgent.includes("Win")) {
|
if (userAgent.includes("Win")) {
|
||||||
return "WindowsInstaller";
|
return "WindowsStubInstaller";
|
||||||
}
|
}
|
||||||
if (userAgent.includes("Mac")) {
|
if (userAgent.includes("Mac")) {
|
||||||
return "MacOS";
|
return "MacOS";
|
||||||
|
@ -98,6 +98,7 @@ export default function DownloadPage() {
|
||||||
<SelectGroup>
|
<SelectGroup>
|
||||||
<SelectLabel>Operating System</SelectLabel>
|
<SelectLabel>Operating System</SelectLabel>
|
||||||
<SelectItem value="WindowsInstaller">Windows Installer</SelectItem>
|
<SelectItem value="WindowsInstaller">Windows Installer</SelectItem>
|
||||||
|
<SelectItem value="WindowsStubInstaller">Windows Pretty 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,5 +1,6 @@
|
||||||
export const releases: any = {
|
export const releases: any = {
|
||||||
WindowsInstaller: "zen.installer.exe",
|
WindowsInstaller: "zen.installer.exe",
|
||||||
|
WindowsStubInstaller: "zen.installer.pretty.exe",
|
||||||
WindowsZip: "zen.win64.zip",
|
WindowsZip: "zen.win64.zip",
|
||||||
//MacOS: [],
|
//MacOS: [],
|
||||||
Linux: "zen.linux.tar.bz2",
|
Linux: "zen.linux.tar.bz2",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue