Skip to content

Commit

Permalink
Merge pull request #2087 from nextcloud/pulsejet/fix-handler
Browse files Browse the repository at this point in the history
fix: viewer handler check ordering
  • Loading branch information
juliusknorr authored Nov 29, 2023
2 parents d1bdfbf + e7f5d82 commit bb04707
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/viewer-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer-main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,6 @@ export default {
handler = this.registeredHandlers[mime] ?? this.registeredHandlers[alias]
}

this.theme = handler.theme ?? 'dark'
// if we don't have a handler for this mime, abort
if (!handler) {
logger.error('The following file could not be displayed', { fileInfo })
Expand All @@ -669,6 +668,7 @@ export default {
return
}

this.theme = handler.theme ?? 'dark'
this.handlerId = handler.id

// check if part of a group, if so retrieve full files list
Expand Down

0 comments on commit bb04707

Please sign in to comment.