Skip to content
Permalink
Browse files

feat: serve ePub as binary files

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 82ed0c6e94e77757270e6694f7082eac5ef5e066
Showing with 1 addition and 1 deletion.
  1. +1 −1 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'
'ttf', 'woff', 'dat', 'nexe', 'pexe', 'epub'
].forEach(function(extension) {
isBinary['.' + extension] = true;
});

0 comments on commit 82ed0c6

Please sign in to comment.
You can’t perform that action at this time.