fix: changed PDFJS prop to GlobalWorkerOptions

This commit is contained in:
Natalia Tepluhina 2019-03-13 13:55:42 +02:00
parent dae55efc64
commit c89742b1be
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ export default {
},
watch: { pdf: 'load' },
mounted() {
pdfjsLib.PDFJS.workerSrc = workerSrc;
pdfjsLib.GlobalWorkerOptions.workerSrc = workerSrc;
if (this.hasPDF) this.load();
},
methods: {