From e2887490779c8e469e9c77e2444fe8d67e703138 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 25 Nov 2016 22:34:17 +0100 Subject: [PATCH] yandex mobile --- source/Ox/js/String.js | 1 + source/UI/UI.js | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/source/Ox/js/String.js b/source/Ox/js/String.js index e510f9a4..1454c5f7 100644 --- a/source/Ox/js/String.js +++ b/source/Ox/js/String.js @@ -318,6 +318,7 @@ Ox.parseUserAgent = function(userAgent) { /(Opera) (\d+)/, /(Opera)\/.+Version\/(\d+)/, /(YandexBot)\/(\d+)/, + /(YandexMobileBot)\/(\d+)/, /Version\/(\d+).+(Safari)/ ], system: [ diff --git a/source/UI/UI.js b/source/UI/UI.js index cd134172..2b3620a5 100644 --- a/source/UI/UI.js +++ b/source/UI/UI.js @@ -45,7 +45,12 @@ Ox.load.UI = function(options, callback) { }, { name: 'YandexBot', - regexp: /(YandexBot)\/(\d+)\./, + regexp: /YandexBot\/(\d+)\./, + version: 3 + }, + { + name: 'YandexMobileBot', + regexp: /YandexMobileBot\/(\d+)\./, version: 3 }, {