gitlab-org--gitlab-foss/app/assets/javascripts/blob/pdf/index.js

17 lines
330 B
JavaScript

import Vue from 'vue';
import PdfViewer from './pdf_viewer.vue';
export default () => {
const el = document.getElementById('js-pdf-viewer');
return new Vue({
el,
render(createElement) {
return createElement(PdfViewer, {
props: {
pdf: el.dataset.endpoint,
},
});
},
});
};