Fix download
This commit is contained in:
@@ -244,12 +244,12 @@ function has_singleplayer() {
|
||||
return new URL(location.href).searchParams.has("singleplayer");
|
||||
}
|
||||
|
||||
// the desktop app's build for the os the browser is on, next to the page in dist/. everything that isn't windows
|
||||
// the desktop app's build for the os the browser is on, which the server has in /dist/, see DESKTOP_DOWNLOADS. everything that isn't windows
|
||||
// gets linux's
|
||||
function download_os() {
|
||||
return /windows/i.test(navigator.userAgent)
|
||||
? { name: "Windows", file: "dist/windows.zip" }
|
||||
: { name: "Linux", file: "dist/linux.zip" };
|
||||
? { name: "Windows", file: "/dist/windows.zip" }
|
||||
: { name: "Linux", file: "/dist/linux.zip" };
|
||||
}
|
||||
|
||||
function download_desktop_app() {
|
||||
|
||||
Reference in New Issue
Block a user