Force opening mobile version for ipad safari
This commit is contained in:
parent
3161d96361
commit
0eae3533df
|
@ -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 += app + "/";
|
||||||
path += config.type === "mobile"
|
path += (config.type === "mobile" || isSafari_mobile)
|
||||||
? "mobile"
|
? "mobile"
|
||||||
: config.type === "embedded"
|
: config.type === "embedded"
|
||||||
? "embed"
|
? "embed"
|
||||||
|
|
Loading…
Reference in a new issue