diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-01-10 09:44:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-10 09:44:47 +0100 |
commit | dc95fc25e2e5cdc0f3f4541009e9051073822ef0 (patch) | |
tree | f0b576b2bed34efe110fe0f8fee9ce8d20e18d7a /apps/files/src | |
parent | 3b681537188f621cdf52035cec279bd82835bf7a (diff) | |
parent | b219d5b68d323899a7ed369c98d4008a6a9a832c (diff) | |
download | nextcloud-server-dc95fc25e2e5cdc0f3f4541009e9051073822ef0.tar.gz nextcloud-server-dc95fc25e2e5cdc0f3f4541009e9051073822ef0.zip |
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.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')) { |