Skip to content

Commit

Permalink
Fix regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-r committed Dec 16, 2023
1 parent 464ca47 commit 41c3c7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/Viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default class Viewer {
registerHandler(handler) {
this._state.handlers.push(handler)
const handledMimes = [
...handler.mimes,
...handler.mimes || [],
...Object.keys(handler.mimesAliases || {}),
]
this._mimetypes.push.apply(this._mimetypes, handledMimes)
Expand Down
2 changes: 1 addition & 1 deletion src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ export default {
fileInfo = this.fileList[this.currentIndex]

// show file
this.currentFile = new File(fileInfo, mime, handler.component)
this.currentFile = new File(fileInfo, mime, this.components[mime])
this.comparisonFile = null
this.updatePreviousNext()

Expand Down

0 comments on commit 41c3c7d

Please sign in to comment.