summaryrefslogtreecommitdiffstats
path: root/apps/files/src
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-01-09 15:56:40 +0100
committernpmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>2020-01-09 15:46:52 +0000
commit2261629fe56091334a1be2ba9a12214e2ab0276e (patch)
treeabe0361079dbdad772d41451272ba76eca0e033f /apps/files/src
parent31c74e87c88ecd8ac92e9cb40797162735cd25b1 (diff)
downloadnextcloud-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.js15
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')) {