From 2261629fe56091334a1be2ba9a12214e2ab0276e Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Thu, 9 Jan 2020 15:56:40 +0100 Subject: Init OCA.Files.Sidebar right away MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) Signed-off-by: npmbuildbot[bot] --- apps/files/src/sidebar.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'apps/files/src') 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')) { -- cgit v1.2.3