diff options
author | Natalia Tepluhina <tarya.se@gmail.com> | 2019-03-13 13:55:42 +0200 |
---|---|---|
committer | Natalia Tepluhina <tarya.se@gmail.com> | 2019-03-13 13:55:42 +0200 |
commit | c89742b1be27d09773a1ea98a7da3079ba321ca7 (patch) | |
tree | 691f7f802ca2c1fe6a6cb19563aeef528e94f3b5 /app/assets/javascripts/pdf | |
parent | dae55efc640f4fc9a3e41a30ffc4725fdb3c206f (diff) | |
download | gitlab-ce-c89742b1be27d09773a1ea98a7da3079ba321ca7.tar.gz |
fix: changed PDFJS prop to GlobalWorkerOptions
Diffstat (limited to 'app/assets/javascripts/pdf')
-rw-r--r-- | app/assets/javascripts/pdf/index.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/pdf/index.vue b/app/assets/javascripts/pdf/index.vue index cdf1257b4e3..dc5f9ba9607 100644 --- a/app/assets/javascripts/pdf/index.vue +++ b/app/assets/javascripts/pdf/index.vue @@ -28,7 +28,7 @@ export default { }, watch: { pdf: 'load' }, mounted() { - pdfjsLib.PDFJS.workerSrc = workerSrc; + pdfjsLib.GlobalWorkerOptions.workerSrc = workerSrc; if (this.hasPDF) this.load(); }, methods: { |