javascript - if Android Device and not google chrome (conditional) -


anyway write conditional; only if android device , not google chrome something.

so, detect if android (easy via below) based on if android and not google chrome; instance android users not using google chrome.

any ideas if possible add such condition in similar format below? (this works detecting android, need add condition if android , not chrome > something)

// var ua = navigator.useragent.tolowercase(); // var isandroid = ua.indexof("android") > -1; //&& ua.indexof("mobile"); // if(isandroid) { //  alert("android!"); // } 

and found can detect chrome below (no way combine them?)

var is_chrome = navigator.useragent.tolowercase().indexof('chrome') > -1; 


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -