mirror of
https://github.com/yuzu-emu/yuzu-emu.github.io.git
synced 2025-06-29 22:34:17 +00:00
Fix detection of Android
This commit is contained in:
parent
7b35cf9edd
commit
fec99710cb
|
@ -119,13 +119,12 @@
|
|||
}
|
||||
|
||||
fetchReleases();
|
||||
|
||||
// Attempt autodetection of their operating system
|
||||
var userAgent = navigator.userAgent.toLowerCase();
|
||||
|
||||
var allPlatforms = ["windows", "mac", "linux"];
|
||||
|
||||
var os = undefined;
|
||||
var os = "Other";
|
||||
if (userAgent.indexOf("windows") !== -1) {
|
||||
os = "Windows";
|
||||
} else if (userAgent.indexOf("mac") !== -1 && userAgent.indexOf("mobile") === -1 && userAgent.indexOf("phone") === -1) {
|
||||
|
|
Loading…
Reference in a new issue