From 347546d7a4b93860e45f51f5060dc09237b3f9e7 Mon Sep 17 00:00:00 2001 From: Ronald Toussaint Date: Fri, 22 May 2015 14:31:45 +0200 Subject: [PATCH] Changed check for responseBody in xmlHttpRequest object, because IE<=10 does not return null. --- webodf/lib/runtime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webodf/lib/runtime.js b/webodf/lib/runtime.js index 05224172b..0fd977e45 100644 --- a/webodf/lib/runtime.js +++ b/webodf/lib/runtime.js @@ -569,7 +569,7 @@ function BrowserRuntime() { data = String(xhr.response); } } else if (encoding === "binary") { - if (xhr.responseBody !== null + if (xhr.responseBody !== null && typeof xhr.responseBody !== 'unknown' && String(typeof VBArray) !== "undefined") { // fallback for IE <= 10 a = (new VBArray(xhr.responseBody)).toArray();