Add strict equalities in src/core/worker.js
This commit is contained in:
parent
c9fb3e1b6d
commit
fb9fea2f36
@ -141,7 +141,7 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onError: function onError(status) {
|
onError: function onError(status) {
|
||||||
if (status == 404) {
|
if (status === 404) {
|
||||||
var exception = new MissingPDFException('Missing PDF "' +
|
var exception = new MissingPDFException('Missing PDF "' +
|
||||||
source.url + '".');
|
source.url + '".');
|
||||||
handler.send('MissingPDF', { exception: exception });
|
handler.send('MissingPDF', { exception: exception });
|
||||||
|
Loading…
Reference in New Issue
Block a user