From ca106c7f44aa7c40b8a1159c1a592e1c74a95ec3 Mon Sep 17 00:00:00 2001 From: tom Date: Fri, 23 Aug 2024 17:35:45 -0400 Subject: [PATCH] Another try at fixing PDF viewer --- _layouts/default.html | 2 +- assets/js/renderPdf.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index 30d06ad..c30e615 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -8,7 +8,7 @@ Tom Monck JR by tmonck - + diff --git a/assets/js/renderPdf.js b/assets/js/renderPdf.js index 6ca1d8b..5758bae 100644 --- a/assets/js/renderPdf.js +++ b/assets/js/renderPdf.js @@ -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,