Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
small adjustments when searching the handler in openFile()
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
  • Loading branch information
Julien Veyssier authored and Raudius committed Jul 21, 2022
commit 117749c72cda984ee12d24d9ba1cb482893f77f4
4 changes: 1 addition & 3 deletions src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,7 @@ export default {
let handler
// Try provided handler, if any
if (overrideHandlerId !== null) {
const overrideHandler = Object.values(this.registeredHandlers).find((handler) => {
return handler.id === overrideHandlerId
})
const overrideHandler = Object.values(this.registeredHandlers).find(h => h.id === overrideHandlerId)
handler = overrideHandler ?? handler
}
// If no provided handler, or provided handler not found: try a supported handler with mime/mime-alias
Expand Down