Skip to content

Commit

Permalink
Merge pull request #5 from legalthings/load-worker-xhr
Browse files Browse the repository at this point in the history
Fixup guessing worker url if none was set
  • Loading branch information
moesjarraf authored Jul 15, 2016
2 parents ea6a702 + aec6ef0 commit f8024d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pdf.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})();
}


0 comments on commit f8024d4

Please sign in to comment.