Skip to content

Commit

Permalink
Fixup guessing worker url if none was set
Browse files Browse the repository at this point in the history
  • Loading branch information
moesjarraf committed Jul 15, 2016
1 parent 8b26de3 commit aec6ef0
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 aec6ef0

Please sign in to comment.