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

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;