1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-11-03 16:53:02 +00:00

Fix #1115 (comic reader not working under iOS, maybe invalid issue)

Improvement for #925 (Next/Prev buttons are bigger)
This commit is contained in:
Ozzieisaacs
2019-12-22 15:24:22 +01:00
parent 7098d08888
commit b586a32843
6 changed files with 33 additions and 111 deletions

View File

@@ -9,10 +9,18 @@
/**
* CRC Implementation.
*/
/* global Uint8Array, Uint32Array, bitjs, DataView */
/* global Uint8Array, Uint32Array, bitjs, DataView, mem */
/* exported MAXWINMASK, UnpackFilter */
var CRCTab = new Array(256).fill(0);
function emptyArr(n, v) {
var arr = [];
for (var i = 0; i < n; i += 1) {
arr[i] = v;
}
return arr;
}
var CRCTab = emptyArr(256, 0);
function initCRC() {
for (var i = 0; i < 256; ++i) {