this.macOs = navigator.platform.toUpperCase().indexOf('MAC') >= 0;
this.android = this.fitScreenAtZero = this.userAgent.search(/android/i) > -1 || this.userAgent.search(/galaxy/i) > -1;
this.android3 = this.android && this.userAgent.search(/android 3/i) > -1;
- this.iOS = (/iPad|iPhone|iPod/.test(navigator.platform) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) && !window.MSStream
+ this.iOS = Modernizr.ios;
this.edge = this.userAgent.search(/edge/i) > -1;
// If in node-webkit or if the index.html fluidbook is locally open in a browser
this.offline = (typeof process !== "undefined" && process.versions['node-webkit']) || window.location.toString().indexOf("file://") == 0;
});
Modernizr.addTest('ipad', function () {
- return !!navigator.userAgent.match(/iPad/i);
+ return (!!navigator.userAgent.match(/iPad/i) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) && !window.MSStream;
});
Modernizr.addTest('iphone', function () {