From: Andreas Gal Date: Thu, 12 May 2011 04:11:32 +0000 (-0700) Subject: support file status code X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=1bf146d87b6a0a55db7f0d0325c507f7d11a2012;p=pdf.js.git support file status code --- diff --git a/test.html b/test.html index 4eb3a76..e625f4b 100644 --- a/test.html +++ b/test.html @@ -34,7 +34,7 @@ function load() { } function xhrstate() { - if (req.readyState == 4 && req.status == 200) { + if (req.readyState == 4 && (req.status == 200 || req.status == 0)) { var data = req.mozResponseArrayBuffer; pdf = new PDFDoc(new Stream(data)); numPages = pdf.numPages;