From b2fb5b91405413a5192aa42b39732f600f2e27a6 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 25 Mar 2021 13:49:54 +0100 Subject: [PATCH] Fix mobile detection in OO --- .../onlyoffice/v4/web-apps/apps/api/documents/api.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/www/common/onlyoffice/v4/web-apps/apps/api/documents/api.js b/www/common/onlyoffice/v4/web-apps/apps/api/documents/api.js index 2cf989670..34d7e5856 100644 --- a/www/common/onlyoffice/v4/web-apps/apps/api/documents/api.js +++ b/www/common/onlyoffice/v4/web-apps/apps/api/documents/api.js @@ -807,11 +807,14 @@ isSafari_mobile = !isIE && !isChrome && check(/safari/) && (navigator.maxTouchPoints>0); path += app + "/"; - path += "main"; /* (config.type === "mobile" || isSafari_mobile) + /* + path += (config.type === "mobile" || isSafari_mobile) ? "mobile" : config.type === "embedded" ? "embed" - : "main"; */ + : "main"; + */ + path += "main"; var index = "/index.html"; if (config.editorConfig) {