Skip to content

Commit 82ed0c6

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.
1 parent 9ef1c81 commit 82ed0c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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'
25+
'ttf', 'woff', 'dat', 'nexe', 'pexe', 'epub'
2626
].forEach(function(extension) {
2727
isBinary['.' + extension] = true;
2828
});

0 commit comments

Comments
 (0)