Fix download

This commit is contained in:
2026-10-07 16:31:47 -03:00
parent 6fe5e0809e
commit 7767efab58
3 changed files with 13 additions and 4 deletions
+3 -3
View File
@@ -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() {