explicitly set pdf.js worker to avoid deprecation
This commit is contained in:
parent
a40708ce02
commit
0d08f3606d
|
@ -1,5 +1,7 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
pdfjsLib.GlobalWorkerOptions.workerSrc = "/pdf.worker.js";
|
||||||
|
|
||||||
const padding = document.getElementById("padding");
|
const padding = document.getElementById("padding");
|
||||||
let pdfDoc = null;
|
let pdfDoc = null;
|
||||||
let pageRendering = false;
|
let pageRendering = false;
|
||||||
|
|
Loading…
Reference in New Issue