Commit 3aa3cf26 authored by cyberta's avatar cyberta

add platform detection condition for android

parent dfd82399
......@@ -29,17 +29,18 @@ function download(platform) {
};
function platformStr() {
if (navigator.platform.toLowerCase().indexOf("linux arm") != -1 ||
navigator.platform.toLowerCase().indexOf("android") != -1) {
return "Android";
}
if (navigator.platform.indexOf("Linux") != -1) {
return "GNU/Linux";
}
if (navigator.platform.indexOf("Mac") != -1) {
return "macOS";
}
if (navigator.platform.indexOf("Android") != -1) {
return "Android";
}
if (navigator.platform.indexOf("Win") != -1) {
return "Windows";
}
return "Other";
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment