Skip to content

Commit ee8c6e0

Browse files
Do not register text/csv mimetype when office can handle it
Signed-off-by: Julius Härtl <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
1 parent 88efbd2 commit ee8c6e0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/helpers/mime.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ const openMimetypesPlainText = [
3737
'application/xml',
3838
'application/yaml',
3939
'text/css',
40-
'text/csv',
4140
'text/html',
4241
'text/org',
4342
'text/x-c',
@@ -49,6 +48,10 @@ const openMimetypesPlainText = [
4948
'text/x-shellscript',
5049
]
5150

51+
if (!window.oc_appswebroots?.richdocuments && !window.oc_appswebroots?.onlyoffice) {
52+
openMimetypesPlainText.push('text/csv')
53+
}
54+
5255
const openMimetypes = [...openMimetypesMarkdown, ...openMimetypesPlainText]
5356

5457
export {

0 commit comments

Comments
 (0)