|
@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {};
|
|
|
}
|
|
|
|
|
|
-PDFJS.version = '1.2.85';
|
|
|
-PDFJS.build = '5b2015b';
|
|
|
+PDFJS.version = '1.2.87';
|
|
|
+PDFJS.build = '3c6df26';
|
|
|
|
|
|
(function pdfjsWrapper() {
|
|
|
// Use strict in our context only - users might not want it
|
|
@@ -8427,11 +8427,13 @@ var NetworkManager = (function NetworkManagerClosure() {
|
|
|
});
|
|
|
} else if (pendingRequest.onProgressiveData) {
|
|
|
pendingRequest.onDone(null);
|
|
|
- } else {
|
|
|
+ } else if (chunk) {
|
|
|
pendingRequest.onDone({
|
|
|
begin: 0,
|
|
|
chunk: chunk
|
|
|
});
|
|
|
+ } else if (pendingRequest.onError) {
|
|
|
+ pendingRequest.onError(xhr.status);
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -41160,7 +41162,7 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
|
|
|
|
|
|
onError: function onError(status) {
|
|
|
var exception;
|
|
|
- if (status === 404) {
|
|
|
+ if (status === 404 || status === 0 && /^file:/.test(source.url)) {
|
|
|
exception = new MissingPDFException('Missing PDF "' +
|
|
|
source.url + '".');
|
|
|
handler.send('MissingPDF', exception);
|