yandex mobile

This commit is contained in:
j 2016-11-25 22:34:17 +01:00
parent 34f8ca479a
commit e288749077
2 changed files with 7 additions and 1 deletions

View file

@ -318,6 +318,7 @@ Ox.parseUserAgent = function(userAgent) {
/(Opera) (\d+)/, /(Opera) (\d+)/,
/(Opera)\/.+Version\/(\d+)/, /(Opera)\/.+Version\/(\d+)/,
/(YandexBot)\/(\d+)/, /(YandexBot)\/(\d+)/,
/(YandexMobileBot)\/(\d+)/,
/Version\/(\d+).+(Safari)/ /Version\/(\d+).+(Safari)/
], ],
system: [ system: [

View file

@ -45,7 +45,12 @@ Ox.load.UI = function(options, callback) {
}, },
{ {
name: 'YandexBot', name: 'YandexBot',
regexp: /(YandexBot)\/(\d+)\./, regexp: /YandexBot\/(\d+)\./,
version: 3
},
{
name: 'YandexMobileBot',
regexp: /YandexMobileBot\/(\d+)\./,
version: 3 version: 3
}, },
{ {