Skip to content

Commit

Permalink
improve android device check
Browse files Browse the repository at this point in the history
  • Loading branch information
biasmv committed Aug 6, 2015
1 parent 58138f6 commit 8e08b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function isiOS() {
}

function isAndroid() {
return /Android/i.test(navigator.userAgent);
return (/Android/ig).test(navigator.userAgent);
}
function shouldUseHighPrecision() {
// high precision for shaders is only required on iOS, all the other browsers
Expand Down

0 comments on commit 8e08b8c

Please sign in to comment.