Skip to content

Commit 16a26a0

Browse files
authored
chore: simplify mime type check (#805)
1 parent b61f0c4 commit 16a26a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/services/alexandria-documents.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default class AlexandriaDocumentsService extends Service {
6464
if (
6565
category.allowedMimeTypes &&
6666
!category.allowedMimeTypes.includes(
67-
file.type || mime.getType(file.name.split(".").pop()),
67+
file.type || mime.getType(file.name),
6868
)
6969
) {
7070
return this.notification.danger(

0 commit comments

Comments
 (0)