Skip to content

Commit

Permalink
Avoid using source if previewUrl is set
Browse files Browse the repository at this point in the history
Signed-off-by: Dariusz Olszewski <[email protected]>
  • Loading branch information
starypatyk committed Jan 30, 2023
1 parent 22df1f9 commit 4a080e4
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/components/Images.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default {
// If there is no preview and we have a direct source
// load it instead
if (this.source && !this.hasPreview) {
if (this.source && !this.hasPreview && !this.previewUrl) {
return this.source
}
Expand Down

0 comments on commit 4a080e4

Please sign in to comment.