Browse Source

support file status code

Andreas Gal 14 years ago
parent
commit
1bf146d87b
  1. 2
      test.html

2
test.html

@ -34,7 +34,7 @@ function load() { @@ -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;

Loading…
Cancel
Save