From e8bbf65fcadcbd5be99af71257a68f12e4557a63 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva <49390479+JuliaSvinareva@users.noreply.github.com> Date: Thu, 30 Jan 2020 16:52:03 +0300 Subject: [PATCH] [mobile] Fix bug 44004 (#325) --- apps/documenteditor/mobile/app/controller/Editor.js | 2 +- apps/presentationeditor/mobile/app/controller/Editor.js | 2 +- apps/spreadsheeteditor/mobile/app/controller/Editor.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/mobile/app/controller/Editor.js b/apps/documenteditor/mobile/app/controller/Editor.js index a48c17dbcd..15c6c499ad 100644 --- a/apps/documenteditor/mobile/app/controller/Editor.js +++ b/apps/documenteditor/mobile/app/controller/Editor.js @@ -51,7 +51,7 @@ define([ function isPhone() { var ua = navigator.userAgent, - isMobile = /Mobile(\/|\s)/.test(ua); + isMobile = /Mobile(\/|\s|;)/.test(ua); return /(iPhone|iPod)/.test(ua) || (!/(Silk)/.test(ua) && (/(Android)/.test(ua) && (/(Android 2)/.test(ua) || isMobile))) || diff --git a/apps/presentationeditor/mobile/app/controller/Editor.js b/apps/presentationeditor/mobile/app/controller/Editor.js index d58fb8d6b0..2d27a63f6a 100644 --- a/apps/presentationeditor/mobile/app/controller/Editor.js +++ b/apps/presentationeditor/mobile/app/controller/Editor.js @@ -51,7 +51,7 @@ define([ function isPhone() { var ua = navigator.userAgent, - isMobile = /Mobile(\/|\s)/.test(ua); + isMobile = /Mobile(\/|\s|;)/.test(ua); return /(iPhone|iPod)/.test(ua) || (!/(Silk)/.test(ua) && (/(Android)/.test(ua) && (/(Android 2)/.test(ua) || isMobile))) || diff --git a/apps/spreadsheeteditor/mobile/app/controller/Editor.js b/apps/spreadsheeteditor/mobile/app/controller/Editor.js index 47eb0cc1af..13b0e943c1 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Editor.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Editor.js @@ -50,7 +50,7 @@ define([ function isPhone() { var ua = navigator.userAgent, - isMobile = /Mobile(\/|\s)/.test(ua); + isMobile = /Mobile(\/|\s|;)/.test(ua); return /(iPhone|iPod)/.test(ua) || (!/(Silk)/.test(ua) && (/(Android)/.test(ua) && (/(Android 2)/.test(ua) || isMobile))) ||