Skip to content

Commit 65a0767

Browse files
author
Thomas Parisot
committed
feat(preprocessor): add 'mp3' and 'ogg' as binary formats to avoid media corruption in the browser.
1 parent efd561d commit 65a0767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/preprocessor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var isBinary = Object.create(null);
2222
'sgi', 'tiff', 'psd', 'uvi', 'sub', 'djvu', 'dwg', 'dxf', 'fbs', 'fpx', 'fst', 'mmr',
2323
'rlc', 'mdi', 'wdp', 'npx', 'wbmp', 'xif', 'webp', '3ds', 'ras', 'cmx', 'fh', 'ico', 'pcx', 'pic',
2424
'pnm', 'pbm', 'pgm', 'ppm', 'rgb', 'tga', 'xbm', 'xpm', 'xwd', 'zip', 'rar', 'tar', 'bz2', 'eot',
25-
'ttf', 'woff', 'dat', 'nexe', 'pexe', 'epub'
25+
'ttf', 'woff', 'dat', 'nexe', 'pexe', 'epub', 'mp3', 'ogg'
2626
].forEach(function(extension) {
2727
isBinary['.' + extension] = true;
2828
});

0 commit comments

Comments
 (0)