[DE] Disable downloading some formats

This commit is contained in:
Julia Radzhabova 2021-12-06 18:37:37 +03:00
parent 1940f6dc12
commit 79ee683c1e
2 changed files with 8 additions and 6 deletions

View file

@ -554,10 +554,11 @@ define([
Asc.c_oAscFileType.OTT,
Asc.c_oAscFileType.FB2,
Asc.c_oAscFileType.EPUB,
Asc.c_oAscFileType.DOCM,
Asc.c_oAscFileType.DOCXF,
Asc.c_oAscFileType.OFORM
Asc.c_oAscFileType.DOCM
];
if (this.appOptions.canFeatureForms) {
_supported = _supported.concat([Asc.c_oAscFileType.DOCXF, Asc.c_oAscFileType.OFORM]);
}
if ( !_format || _supported.indexOf(_format) < 0 )
_format = Asc.c_oAscFileType.DOCX;

View file

@ -159,10 +159,11 @@ define([
Asc.c_oAscFileType.OTT,
Asc.c_oAscFileType.FB2,
Asc.c_oAscFileType.EPUB,
Asc.c_oAscFileType.DOCM,
Asc.c_oAscFileType.DOCXF,
Asc.c_oAscFileType.OFORM
Asc.c_oAscFileType.DOCM
];
if (_main.appOptions.canFeatureForms) {
_supported = _supported.concat([Asc.c_oAscFileType.DOCXF, Asc.c_oAscFileType.OFORM]);
}
if ( !_format || _supported.indexOf(_format) < 0 )
_format = Asc.c_oAscFileType.PDF;