From 4e1127202351cef1518ab382eddbd3d02e84ac47 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Fri, 1 Dec 2017 10:10:42 +0100 Subject: [PATCH] Working on IE11 --- cps/static/js/kthoom.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cps/static/js/kthoom.js b/cps/static/js/kthoom.js index 63b12ca6..1754c460 100644 --- a/cps/static/js/kthoom.js +++ b/cps/static/js/kthoom.js @@ -138,6 +138,9 @@ kthoom.setProgressMeter = function(optLabel) { function loadFromArrayBuffer(ab) { var f = []; + if (typeof ab !== "object") { + ab = JSON.parse(ab); + } f.fileData = ab.content; f.filename = ab.name; // add any new pages based on the filename