Do not recognize aiff files as audio
This commit is contained in:
parent
40e46d7ca4
commit
0970c73310
1 changed files with 3 additions and 1 deletions
|
@ -16,5 +16,7 @@ export const isImage = (value: MIMEType): boolean =>
|
||||||
value && value.startsWith('image/');
|
value && value.startsWith('image/');
|
||||||
export const isVideo = (value: MIMEType): boolean =>
|
export const isVideo = (value: MIMEType): boolean =>
|
||||||
value && value.startsWith('video/');
|
value && value.startsWith('video/');
|
||||||
|
// As of 2020-04-16 aif files do not play in Electron nor Chrome. We should only
|
||||||
|
// recognize them as file attachments.
|
||||||
export const isAudio = (value: MIMEType): boolean =>
|
export const isAudio = (value: MIMEType): boolean =>
|
||||||
value && value.startsWith('audio/');
|
value && value.startsWith('audio/') && !value.endsWith('aiff');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue