diff options
author | Sam Rose <sam@gitlab.com> | 2017-04-11 22:44:22 -0400 |
---|---|---|
committer | Sam Rose <sam@gitlab.com> | 2017-04-28 12:52:36 -0400 |
commit | 9f3985c6133507ac721abbb4c19049656008ec68 (patch) | |
tree | 2b1ccb4c3adf30ced424c690a8dc3a2e6e74fc35 /app/assets/javascripts/blob | |
parent | 6dc424c949ab3de9395d821b05d2e1cc5f632ed2 (diff) | |
download | gitlab-ce-9f3985c6133507ac721abbb4c19049656008ec68.tar.gz |
Move PDFLab into GitLabpdflab-in-repo
Diffstat (limited to 'app/assets/javascripts/blob')
-rw-r--r-- | app/assets/javascripts/blob/pdf/index.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/assets/javascripts/blob/pdf/index.js b/app/assets/javascripts/blob/pdf/index.js index a74c2db9a61..7fc4cd7c9fd 100644 --- a/app/assets/javascripts/blob/pdf/index.js +++ b/app/assets/javascripts/blob/pdf/index.js @@ -1,11 +1,6 @@ /* eslint-disable no-new */ import Vue from 'vue'; -import PDFLab from 'vendor/pdflab'; -import workerSrc from 'vendor/pdf.worker'; - -Vue.use(PDFLab, { - workerSrc, -}); +import pdfLab from '../../pdf/index.vue'; export default () => { const el = document.getElementById('js-pdf-viewer'); @@ -20,6 +15,9 @@ export default () => { pdf: el.dataset.endpoint, }; }, + components: { + pdfLab, + }, methods: { onLoad() { this.loading = false; |