Skip to content

Commit

Permalink
Fix: Images with mime type image/jpg are not displayed #22
Browse files Browse the repository at this point in the history
  • Loading branch information
JackGruber committed Apr 3, 2024
1 parent 1124b11 commit 29168d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Fix: Display HTML entities in preview #21
- Add: Thumbnail support for PDFs #15
- Fix: Images with mime type `image/jpg` are not displayed #22

## v0.4.1 (2024-02-17)

Expand Down
1 change: 1 addition & 0 deletions src/notelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,7 @@ class Notelist {
if (
resourceItem.mime.includes("image/png") ||
resourceItem.mime.includes("image/jpeg") ||
resourceItem.mime.includes("image/jpg") ||
resourceItem.mime.includes("application/pdf")
) {
thumbnailPath = await this.genResourcePreviewImage(
Expand Down

0 comments on commit 29168d6

Please sign in to comment.