diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-06-17 23:09:33 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-06-17 23:09:33 +0300 |
commit | 7e74e6d41cfb8efe25a7f666ecb592eac9784060 (patch) | |
tree | b07f685d16d367c80743858e03ab940e80c4860b /src/files.js | |
parent | 91f8e8a88df5cd41e113572060a491b92886f308 (diff) |
Fix loading and translatable strings
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/files.js')
-rw-r--r-- | src/files.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/files.js b/src/files.js index 848d4bcbc..23be20547 100644 --- a/src/files.js +++ b/src/files.js @@ -21,7 +21,6 @@ */ import FilesEditor from './components/FilesEditor' -import { documentReady } from './helpers' __webpack_nonce__ = btoa(OC.requestToken) // eslint-disable-line __webpack_public_path__ = OC.linkTo('text', 'js/') // eslint-disable-line @@ -69,7 +68,7 @@ const newFileMenuPlugin = { } OC.Plugins.register('OCA.Files.NewFileMenu', newFileMenuPlugin) -documentReady(() => { +document.addEventListener('DOMContentLoaded', () => { if (typeof OCA.Viewer === 'undefined') { console.error('Viewer app is not installed') return |