From 65a0767e8024879e3a5c4557f376d8b6684530e8 Mon Sep 17 00:00:00 2001 From: Thomas Parisot Date: Wed, 18 Jun 2014 14:04:49 +0100 Subject: [PATCH] feat(preprocessor): add 'mp3' and 'ogg' as binary formats to avoid media corruption in the browser. --- lib/preprocessor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/preprocessor.js b/lib/preprocessor.js index c6e0affdf..392c5eb48 100644 --- a/lib/preprocessor.js +++ b/lib/preprocessor.js @@ -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; });