Skip to content

Commit

Permalink
Another try at fixing PDF viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
tmonck committed Aug 23, 2024
1 parent 769a6ae commit ca106c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<title>Tom Monck JR by tmonck</title>
<link rel="stylesheet" href="assets/css/styles.css" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<script src="//mozilla.github.io/pdf.js/build/pdf.mjs"></script>
<script src="//mozilla.github.io/pdf.js/build/pdf.mjs" type="module"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
Expand Down
2 changes: 1 addition & 1 deletion assets/js/renderPdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var url = 'assets/docs/TomMonckResume.pdf';
var pdfjsLib = window['pdfjs-dist/build/pdf'];

// The workerSrc property shall be specified.
pdfjsLib.GlobalWorkerOptions.workerSrc = '//mozilla.github.io/pdf.js/build/pdf.worker.js';
pdfjsLib.GlobalWorkerOptions.workerSrc = '//mozilla.github.io/pdf.js/build/pdf.worker.mjs';

var pdfDoc = null,
pageNum = 1,
Expand Down

0 comments on commit ca106c7

Please sign in to comment.