Created
January 26, 2016 12:40
-
-
Save nelsonsilva/5cc100544c0bdccb87fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/js-worker"> | |
<!-- pdf.worker.js content goes here --> | |
</script> | |
<script> | |
var workerSrc = document.querySelector('script[type="text/js-worker"]').textContent | |
var blob = new Blob([workerSrc], {type: "text/javascript"}); | |
PDFJS.workerSrc = window.URL.createObjectURL(blob); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment