an additional way to detect android when in desktopmode

This commit is contained in:
stefan.tollkuehn committed 2026-10-07 14:38:06 +02:00
1 parent b4ae7fb985
commit ff9658b3bb
1 file changed
+10
+10
View File
@@ -1733,6 +1733,16 @@
}; };
function detectOperatingSystem() { function detectOperatingSystem() {
/*
* Chrome im "Desktop-Modus" auf Android sendet einen
* Desktop-UA (z.B. X11; Linux). Client Hints verraten
* das echte System. Firefox/Safari kennen sie nicht.
*/
const hints = navigator.userAgentData;
if (hints && hints.platform === "Android") {
return OS_NAMES.Android;
}
/* /*
* iPadOS tarnt sich als macOS. * iPadOS tarnt sich als macOS.
*/ */