support file status code

This commit is contained in:
Andreas Gal 2011-05-11 21:11:32 -07:00
parent 61ff69625d
commit 1bf146d87b

View File

@ -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;