diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-06-21 15:55:21 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-06-21 15:55:21 +0300 |
commit | cfe4ea7d1771aeb453d457c22a2b51e8900a28cd (patch) | |
tree | 32dbb7e380fc8ae5806289eb5d0e7c3321b69b30 /src/public.js | |
parent | d4a82113a05fd2d2ab4f9e2117878b631453d4a0 (diff) |
Fix create file in public list
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/public.js')
-rw-r--r-- | src/public.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/public.js b/src/public.js index 1d0af71a4..e8323e6d8 100644 --- a/src/public.js +++ b/src/public.js @@ -11,7 +11,6 @@ documentReady(() => { // Load regular viewer integration if (dir !== '') { - const path = window.FileList.getCurrentDirectory() + '/' + filename const ViewerRoot = document.createElement('div') ViewerRoot.id = 'viewerpublic' document.body.appendChild(ViewerRoot) @@ -26,6 +25,7 @@ documentReady(() => { import('vue'), import('./components/PublicFilesEditor') ]).then((imports) => { + const path = window.FileList.getCurrentDirectory() + '/' + filename const Vue = imports[0].default Vue.prototype.t = window.t Vue.prototype.OCA = window.OCA @@ -44,7 +44,7 @@ documentReady(() => { }, t('text', 'Edit') ) - OCA.Files.fileActions.setDefault('text/markdown', 'Edit with text'); + OCA.Files.fileActions.setDefault('text/markdown', 'Edit with text') } else { const container = document.createElement('div') container.id = 'texteditor' |