]> git.parisson.com Git - pdf.js.git/commitdiff
support file status code
authorAndreas Gal <andreas.gal@gmail.com>
Thu, 12 May 2011 04:11:32 +0000 (21:11 -0700)
committerAndreas Gal <andreas.gal@gmail.com>
Thu, 12 May 2011 04:11:32 +0000 (21:11 -0700)
test.html

index 4eb3a76296b468777b0fd51efade06e413e2703e..e625f4bf16d7a090e65c7b700b217429623be584 100644 (file)
--- 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;