mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
support file status code
This commit is contained in:
parent
61ff69625d
commit
1bf146d87b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue