diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-01-09 15:56:40 +0100 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2020-01-09 15:46:52 +0000 |
commit | 2261629fe56091334a1be2ba9a12214e2ab0276e (patch) | |
tree | abe0361079dbdad772d41451272ba76eca0e033f /apps/files/src | |
parent | 31c74e87c88ecd8ac92e9cb40797162735cd25b1 (diff) | |
download | nextcloud-server-2261629fe56091334a1be2ba9a12214e2ab0276e.tar.gz nextcloud-server-2261629fe56091334a1be2ba9a12214e2ab0276e.zip |
Init OCA.Files.Sidebar right away
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files/src')
-rw-r--r-- | apps/files/src/sidebar.js | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/apps/files/src/sidebar.js b/apps/files/src/sidebar.js index 717e659e661..16e2035190f 100644 --- a/apps/files/src/sidebar.js +++ b/apps/files/src/sidebar.js @@ -30,15 +30,14 @@ Vue.use(VueClipboard) Vue.prototype.t = t -window.addEventListener('DOMContentLoaded', () => { - - // Init Sidebar Service - if (!window.OCA.Files) { - window.OCA.Files = {} - } - Object.assign(window.OCA.Files, { Sidebar: new Sidebar() }) - Object.assign(window.OCA.Files.Sidebar, { Tab }) +// Init Sidebar Service +if (!window.OCA.Files) { + window.OCA.Files = {} +} +Object.assign(window.OCA.Files, { Sidebar: new Sidebar() }) +Object.assign(window.OCA.Files.Sidebar, { Tab }) +window.addEventListener('DOMContentLoaded', () => { // Make sure we have a proper layout if (document.getElementById('content')) { |