explicitly set pdf.js worker to avoid deprecation

This commit is contained in:
Daniel Micay 2021-11-21 15:39:19 -05:00
parent a40708ce02
commit 0d08f3606d
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,7 @@
"use strict";
pdfjsLib.GlobalWorkerOptions.workerSrc = "/pdf.worker.js";
const padding = document.getElementById("padding");
let pdfDoc = null;
let pageRendering = false;