Fix Bug 64805

This commit is contained in:
Julia Radzhabova
2023-10-24 12:21:49 +03:00
parent 5f0ef51382
commit f59e8286fd

View File

@ -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'];