Site: the Android button offers the build without Stockfish first
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7002731346
commit
d13147079e
3 changed files with 10 additions and 10 deletions
|
|
@ -13,7 +13,7 @@
|
|||
var ua = navigator.userAgent || "";
|
||||
var platform = (navigator.userAgentData && navigator.userAgentData.platform) || navigator.platform || "";
|
||||
var touchMac = /Mac/.test(platform) && navigator.maxTouchPoints > 1;
|
||||
if (/Android/i.test(ua)) return { os: "android", slug: "android" };
|
||||
if (/Android/i.test(ua)) return { os: "android", slug: "android-noengine" };
|
||||
if (/iPhone|iPod|iPad/i.test(ua) || touchMac) return { os: "mobile" };
|
||||
if (/CrOS/.test(ua)) return { os: "linux", slug: "deb", chromeos: true };
|
||||
if (/Win/.test(platform) || /Windows/.test(ua)) return { os: "windows", slug: "windows" };
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
return { os: "unknown" };
|
||||
}
|
||||
var sys = detect();
|
||||
var FORMAT = { windows: ".zip", deb: ".deb", rpm: ".rpm", appimage: "AppImage", android: "APK" };
|
||||
var FORMAT = { windows: ".zip", deb: ".deb", rpm: ".rpm", appimage: "AppImage", "android-noengine": "APK" };
|
||||
|
||||
function intelMac() {
|
||||
try {
|
||||
|
|
@ -66,7 +66,7 @@
|
|||
if (asset) parts.push(asset.size);
|
||||
parts.push(sys.os === "macos" ? t("apple_silicon") : FORMAT[sys.slug]);
|
||||
if (sys.chromeos) parts.push(t("chromeos"));
|
||||
if (sys.os === "android") parts.push(t("and_full_title"), t("and_alpha"));
|
||||
if (sys.os === "android") parts.push(t("and_light_title"), t("and_alpha"));
|
||||
l2.textContent = parts.join(" · ");
|
||||
if (sys.os === "macos") {
|
||||
var note = $("hero-note");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue