diff options
Diffstat (limited to 'app/assets/javascripts/blob/notebook')
-rw-r--r-- | app/assets/javascripts/blob/notebook/index.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/assets/javascripts/blob/notebook/index.js b/app/assets/javascripts/blob/notebook/index.js index 25fe29c4fbe..9259827edf1 100644 --- a/app/assets/javascripts/blob/notebook/index.js +++ b/app/assets/javascripts/blob/notebook/index.js @@ -1,13 +1,11 @@ import Vue from 'vue'; import NotebookViewer from './notebook_viewer.vue'; -export default () => { - const el = document.getElementById('js-notebook-viewer'); - +export default ({ el = document.getElementById('js-notebook-viewer'), relativeRawPath }) => { return new Vue({ el, provide: { - relativeRawPath: el.dataset.relativeRawPath, + relativeRawPath: relativeRawPath || el.dataset.relativeRawPath, }, render(createElement) { return createElement(NotebookViewer, { |