From f59e8286fd610357c2a6bdc3e89e4efeb48dc5bd Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 24 Oct 2023 12:21:49 +0300 Subject: [PATCH] Fix Bug 64805 --- apps/api/documents/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index 2c1326b92e..1712d65648 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -941,7 +941,7 @@ if (typeof config.documentType === 'string') { app = appMap[config.documentType.toLowerCase()]; - if (config.type == 'desktop' && !!config.document && typeof config.document.fileType === 'string') { + if (config.type !== 'mobile' && config.type !== 'embedded' && !!config.document && typeof config.document.fileType === 'string') { var type = /^(?:(pdf|djvu|xps|oxps))$/.exec(config.document.fileType); if (type && typeof type[1] === 'string') app = appMap['pdf']; @@ -954,7 +954,7 @@ if (typeof type[1] === 'string') app = appMap['cell']; else if (typeof type[2] === 'string') app = appMap['slide']; } - if (config.type == 'desktop') { + if (config.type !== 'mobile' && config.type !== 'embedded') { type = /^(?:(pdf|djvu|xps|oxps))$/.exec(config.document.fileType); if (type && typeof type[1] === 'string') app = appMap['pdf'];