choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
19 lines (14 loc) • 408 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = isMobile;
function isMobile() {
var info = navigator.userAgent;
var agents = ['Android', 'iPhone', 'SymbianOS', 'Windows Phone', 'iPod', 'iPad'];
for (var i = 0; i < agents.length; i++) {
if (info.indexOf(agents[i]) >= 0) return true;
}
return false;
}
//# sourceMappingURL=isMobile.js.map
;