1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-28 20:39:59 +00:00

Working on IE11

This commit is contained in:
OzzieIsaacs 2017-12-01 10:10:42 +01:00
parent f890fc1553
commit 4e11272023

View File

@ -138,6 +138,9 @@ kthoom.setProgressMeter = function(optLabel) {
function loadFromArrayBuffer(ab) { function loadFromArrayBuffer(ab) {
var f = []; var f = [];
if (typeof ab !== "object") {
ab = JSON.parse(ab);
}
f.fileData = ab.content; f.fileData = ab.content;
f.filename = ab.name; f.filename = ab.name;
// add any new pages based on the filename // add any new pages based on the filename