Skip to content

Commit

Permalink
feat: serve ePub as binary files
Browse files Browse the repository at this point in the history
The *.epub files are now served as binary file by Karma. Otherwise they are
converted into strings and became corrupted.
  • Loading branch information
aymericbeaumet committed May 26, 2014
1 parent 9ef1c81 commit 82ed0c6
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', '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', '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', 'pnm', 'pbm', 'pgm', 'ppm', 'rgb', 'tga', 'xbm', 'xpm', 'xwd', 'zip', 'rar', 'tar', 'bz2', 'eot',
'ttf', 'woff', 'dat', 'nexe', 'pexe' 'ttf', 'woff', 'dat', 'nexe', 'pexe', 'epub'
].forEach(function(extension) { ].forEach(function(extension) {
isBinary['.' + extension] = true; isBinary['.' + extension] = true;
}); });
Expand Down

0 comments on commit 82ed0c6

Please sign in to comment.