fix: changed PDFJS prop to GlobalWorkerOptions
This commit is contained in:
parent
dae55efc64
commit
c89742b1be
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ export default {
|
||||||
},
|
},
|
||||||
watch: { pdf: 'load' },
|
watch: { pdf: 'load' },
|
||||||
mounted() {
|
mounted() {
|
||||||
pdfjsLib.PDFJS.workerSrc = workerSrc;
|
pdfjsLib.GlobalWorkerOptions.workerSrc = workerSrc;
|
||||||
if (this.hasPDF) this.load();
|
if (this.hasPDF) this.load();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in a new issue