From aec6ef02984455f5dcce8637d8755e3d04c21ee9 Mon Sep 17 00:00:00 2001 From: moesjarraf Date: Fri, 15 Jul 2016 13:35:31 +0200 Subject: [PATCH] Fixup guessing worker url if none was set --- pdf.worker.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pdf.worker.js b/pdf.worker.js index 3b65797..078b3a3 100644 --- a/pdf.worker.js +++ b/pdf.worker.js @@ -39423,8 +39423,6 @@ if (!PDFJS.workerSrc && typeof document !== 'undefined') { var scriptTagContainer = document.body || document.getElementsByTagName('head')[0]; var pdfjsSrc = scriptTagContainer.lastChild.src; - return pdfjsSrc && pdfjsSrc.replace(/\.js$/i, '.worker.js'); + return pdfjsSrc; })(); } - -