website: fix capture button

This commit is contained in:
nym21
2026-06-27 12:05:39 +02:00
parent f9688629ca
commit 75f37b6695
2 changed files with 74 additions and 8 deletions
+2 -1
View File
@@ -2,5 +2,6 @@ export const localhost = window.location.hostname === "localhost";
const userAgent = navigator.userAgent.toLowerCase();
const iphone = userAgent.includes("iphone");
const ipad = userAgent.includes("ipad");
export const ios = iphone || ipad;
const touchMac = userAgent.includes("macintosh") && navigator.maxTouchPoints > 1;
export const ios = iphone || ipad || touchMac;
export const canShare = "canShare" in navigator;