Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-01-10 11:44:47 +0300
committerGitHub <noreply@github.com>2020-01-10 11:44:47 +0300
commitdc95fc25e2e5cdc0f3f4541009e9051073822ef0 (patch)
treef0b576b2bed34efe110fe0f8fee9ce8d20e18d7a /apps/files/src
parent3b681537188f621cdf52035cec279bd82835bf7a (diff)
parentb219d5b68d323899a7ed369c98d4008a6a9a832c (diff)
Merge pull request #18796 from nextcloud/backport/18783/stable18
[stable18] Init OCA.Files.Sidebar right away
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')) {