Skip to content

Commit

Permalink
feat: added more mime type
Browse files Browse the repository at this point in the history
  • Loading branch information
mbret committed Jul 28, 2024
1 parent 838bef1 commit 1dcdf7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/shared/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
export const READER_ACCEPTED_EXTENSIONS = {
"text/plain": [".txt"],
"application/x-cbz": [".cbz"],
"application/zip": [".epub"],
"application/epub+zip": [".epub"],
"application/zip": [".epub", ".zip"],
"application/epub+zip": [".epub", ".zip"],
"application/x-cbr": [".cbr"],
"application/x-rar": [".cbr"]
}

export const READER_SUPPORTED_MIME_TYPES = Object.keys(
READER_ACCEPTED_EXTENSIONS
)

export const READER_SUPPORTED_EXTENSIONS = Object.values(
READER_ACCEPTED_EXTENSIONS
).reduce((prev, next) => [...prev, ...next], [])
Expand Down

0 comments on commit 1dcdf7c

Please sign in to comment.