src/main/javascript/util/floatz.util.useragent.js
/**
	 * Detect if device is mobile.
	 *
	 * @returns {boolean} true if mobile, false if not
	 */
Detect if device is mobile.
@returns {boolean} true if mobile, false if not
Detect if device is mobile . @returns { boolean } true if mobile false if not
static isMobile() {
		let ua = navigator.userAgent;
		if (ua.match(/Android/i)) {
			return true;
		} else if (ua.match(/webOS/i)) {
			return true;
		} else if (ua.match(/iPhone/i)) {
			return true;
		} else if (ua.match(/iPod/i)) {
			return true;
		} else if (ua.match(/iPad/i)) {
			return true;
		} else if (ua.match(/Windows Phone/i)) {
			return true;
		} else if (ua.match(/SymbianOS/i)) {
			return true;
		} else if (ua.match(/RIM/i) || ua.match(/BB/i)) {
			return true;
		} else {
			return false;
		}
	}
static isMobile ( ) { let ua = navigator . userAgent ; if ( ua . match ( / Android / i ) ) { return true ; } else if ( ua . match ( / webOS / i ) ) { return true ; } else if ( ua . match ( / iPhone / i ) ) { return true ; } else if ( ua . match ( / iPod / i ) ) { return true ; } else if ( ua . match ( / iPad / i ) ) { return true ; } else if ( ua . match ( / Windows Phone / i ) ) { return true ; } else if ( ua . match ( / SymbianOS / i ) ) { return true ; } else if ( ua . match ( / RIM / i ) || ua . match ( / BB / i ) ) { return true ; } else { return false ; } }
Detect if device is mobile.
Detect if device is mobile .