1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-11-13 05:37:15 +00:00

Downgrade bitjs to es5 branch

This commit is contained in:
subdiox
2019-05-13 14:53:25 +09:00
parent c0d136ccd8
commit 7982ed877c
9 changed files with 2242 additions and 2757 deletions

View File

@@ -160,7 +160,7 @@ function initProgressClick() {
function loadFromArrayBuffer(ab) {
var start = (new Date).getTime();
var h = new Uint8Array(ab, 0, 10);
var pathToBitJS = "../../static/js/";
var pathToBitJS = "../../static/js/archive/";
if (h[0] === 0x52 && h[1] === 0x61 && h[2] === 0x72 && h[3] === 0x21) { //Rar!
unarchiver = new bitjs.archive.Unrarrer(ab, pathToBitJS);
} else if (h[0] === 80 && h[1] === 75) { //PK (Zip)