Skip to content

Commit

Permalink
Fix top-level EPUB attachments not opening in a reader when double cl…
Browse files Browse the repository at this point in the history
…icked
  • Loading branch information
tnajdek committed Nov 21, 2024
1 parent 28f3f14 commit fcccc3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/actions/attachments.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const pickBestAttachmentItemAction = attachmentItemKey => {
const hasLink = isFile || isLink;

if(hasLink) {
if(item.contentType === 'application/pdf') {
if (Object.keys(READER_CONTENT_TYPES).includes(item.contentType)) {
const readerPath = makePath(state.config, {
attachmentKey: null,
collection: current.collectionKey,
Expand Down

0 comments on commit fcccc3d

Please sign in to comment.