I need to detect mobile devices and I'm using this code, as per this question.
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
// some code..
}
However, it no longer detects Chrome on my iPad. How can mobile Chrome be detected now?