parent
e5e0b96861
commit
21bbf4bee0
1 changed files with 5 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ export const APPLICATION_MIME_TYPES = [
|
||||||
'application/javascript',
|
'application/javascript',
|
||||||
'application/xhtml+xml',
|
'application/xhtml+xml',
|
||||||
'application/xml',
|
'application/xml',
|
||||||
|
'application/ogg',
|
||||||
];
|
];
|
||||||
|
|
||||||
export const TEXT_MIME_TYPE = [
|
export const TEXT_MIME_TYPE = [
|
||||||
|
|
@ -115,6 +116,10 @@ export const getBlobSafeMimeType = (mimeType: string) => {
|
||||||
if (type === 'video/quicktime') {
|
if (type === 'video/quicktime') {
|
||||||
return 'video/mp4';
|
return 'video/mp4';
|
||||||
}
|
}
|
||||||
|
// Fixes missing playback for Ogg audio
|
||||||
|
if (type === 'application/ogg') {
|
||||||
|
return 'audio/ogg';
|
||||||
|
}
|
||||||
return type;
|
return type;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue