Skip to content

Commit

Permalink
[Local folder] Allow all image types
Browse files Browse the repository at this point in the history
Implementing review feedback from PR #145

#145 (comment)
  • Loading branch information
Lucki committed Feb 21, 2023
1 parent b593ab3 commit bacb79c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapter/localFolder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class LocalFolderAdapter extends BaseAdapter {
}

const contentType = info.get_content_type();
if (contentType === 'image/png' || contentType === 'image/jpeg')
if (contentType && contentType.startsWith('image/'))
files.push(child);
}

Expand Down

0 comments on commit bacb79c

Please sign in to comment.