|
|
|
@ -1,5 +1,9 @@
|
|
|
|
|
|
|
|
|
|
var helper = require('../../../../../javascripts/cartodb/helpers/map_options');
|
|
|
|
|
var MOBILE_DEVICES_REGEX = /Android|webOS|iPad|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i;
|
|
|
|
|
|
|
|
|
|
function isMobileDevice () {
|
|
|
|
|
return MOBILE_DEVICES_REGEX.test(navigator.userAgent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getFBstatus (gl) {
|
|
|
|
|
const status = gl.checkFramebufferStatus(gl.FRAMEBUFFER);
|
|
|
|
@ -30,7 +34,7 @@ function getWebGLsupport (canvas) {
|
|
|
|
|
EXT_blend_minmax: '-',
|
|
|
|
|
MAX_RENDERBUFFER_SIZE: '-',
|
|
|
|
|
renderToFloat: '-',
|
|
|
|
|
mobile: helper.isMobileDevice(),
|
|
|
|
|
mobile: isMobileDevice(),
|
|
|
|
|
userAgent: navigator.userAgent
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|