Skip to content

Commit

Permalink
Do not register text/csv mimetype when office can handle it
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
  • Loading branch information
juliusknorr authored and backportbot-nextcloud[bot] committed May 27, 2022
1 parent ab2ee05 commit e7512e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/helpers/mime.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const openMimetypesPlainText = [
'application/xml',
'application/yaml',
'text/css',
'text/csv',
'text/html',
'text/org',
'text/x-c',
Expand All @@ -49,6 +48,10 @@ const openMimetypesPlainText = [
'text/x-shellscript',
]

if (!window.oc_appswebroots?.richdocuments && !window.oc_appswebroots?.onlyoffice) {
openMimetypesPlainText.push('text/csv')
}

const openMimetypes = [...openMimetypesMarkdown, ...openMimetypesPlainText]

export {
Expand Down

0 comments on commit e7512e4

Please sign in to comment.