Skip to content

Commit

Permalink
Merge pull request #831 from nextcloud/fix/13504/viewer-mimetypes
Browse files Browse the repository at this point in the history
fix(Viewer): expose Viewer.mimetypes as unified array of supported mimes
  • Loading branch information
ShGKme authored Oct 16, 2024
2 parents ceba39b + 0a66bc1 commit 0d06311
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/talk/renderer/Viewer/Viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ export async function createViewer() {
component: ViewerHandlerText,
}],

get mimetypes() {
return this.availableHandlers.flatMap(handler => handler.mimes)
},

open(...args) {
Viewer.instance.open(...args)
},
Expand Down

0 comments on commit 0d06311

Please sign in to comment.