Force opening mobile version for ipad safari

This commit is contained in:
Julia Radzhabova 2019-10-14 10:54:01 +03:00
parent 3161d96361
commit 0eae3533df

View file

@ -730,8 +730,14 @@
}
}
var userAgent = navigator.userAgent.toLowerCase(),
check = function(regex){ return regex.test(userAgent); },
isIE = !check(/opera/) && (check(/msie/) || check(/trident/) || check(/edge/)),
isChrome = !isIE && check(/\bchrome\b/),
isSafari_mobile = !isIE && !isChrome && check(/safari/) && (navigator.maxTouchPoints>0);
path += app + "/";
path += config.type === "mobile"
path += (config.type === "mobile" || isSafari_mobile)
? "mobile"
: config.type === "embedded"
? "embed"