Skip to content

Commit

Permalink
feat(preprocessor): add 'mp3' and 'ogg' as binary formats to avoid me…
Browse files Browse the repository at this point in the history
…dia corruption in the browser.
  • Loading branch information
Thomas Parisot committed Jun 18, 2014
1 parent efd561d commit 65a0767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/preprocessor.js
Expand Up @@ -22,7 +22,7 @@ var isBinary = Object.create(null);
'sgi', 'tiff', 'psd', 'uvi', 'sub', 'djvu', 'dwg', 'dxf', 'fbs', 'fpx', 'fst', 'mmr',
'rlc', 'mdi', 'wdp', 'npx', 'wbmp', 'xif', 'webp', '3ds', 'ras', 'cmx', 'fh', 'ico', 'pcx', 'pic',
'pnm', 'pbm', 'pgm', 'ppm', 'rgb', 'tga', 'xbm', 'xpm', 'xwd', 'zip', 'rar', 'tar', 'bz2', 'eot',
'ttf', 'woff', 'dat', 'nexe', 'pexe', 'epub'
'ttf', 'woff', 'dat', 'nexe', 'pexe', 'epub', 'mp3', 'ogg'
].forEach(function(extension) {
isBinary['.' + extension] = true;
});
Expand Down

0 comments on commit 65a0767

Please sign in to comment.