Merge branch 'dev' of 47.111.118.107:/srv/git/platform into dev

master
chenzhi 5 years ago
commit e61a8af93d

@ -63,7 +63,8 @@ class Request {
public function isIOS13() public function isIOS13()
{ {
$userAgent = $this->getUserAgent(); $userAgent = $this->getUserAgent();
if (preg_match('/OS [1][3-9]_[1-9][_\d]* like Mac OS X/i', $userAgent)) { // if (preg_match('/OS [1][3-9]_[1-9][_\d]* like Mac OS X/i', $userAgent)) {
if (preg_match('/OS.*[1][3-9]_[1-9][_\d]*.*like.*Mac.*OS.*X/i', $userAgent)) {
return true; return true;
} }
return false; return false;

Loading…
Cancel
Save