From 29c0ea159ddcb81884e78152e6e4a768402fc58c Mon Sep 17 00:00:00 2001 From: cheryly279 Date: Mon, 27 Aug 2018 11:30:05 -0400 Subject: [PATCH] Adding chunkname to async loaded code Better name --- src/display/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);