diff --git a/src/display/api.js b/src/display/api.js index 9afadc3ce90c8..f5c6b15e70051 100644 --- a/src/display/api.js +++ b/src/display/api.js @@ -75,7 +75,7 @@ if (typeof PDFJSDev !== 'undefined' && PDFJSDev.test('GENERIC')) { worker = __non_webpack_require__('./pdf.worker.js'); } callback(worker.WorkerMessageHandler); - }); + }, null, 'pdfjsWorker'); }) : dynamicLoaderSupported ? (function (callback) { requirejs(['pdfjs-dist/build/pdf.worker'], function (worker) { callback(worker.WorkerMessageHandler);