diff --git a/apps/files/js/dist/sidebar.js b/apps/files/js/dist/sidebar.js index 6ef200c3f8..df98a3984a 100644 Binary files a/apps/files/js/dist/sidebar.js and b/apps/files/js/dist/sidebar.js differ diff --git a/apps/files/js/dist/sidebar.js.map b/apps/files/js/dist/sidebar.js.map index 1c4ddb5adc..b79d421a82 100644 Binary files a/apps/files/js/dist/sidebar.js.map and b/apps/files/js/dist/sidebar.js.map differ diff --git a/apps/files/src/sidebar.js b/apps/files/src/sidebar.js index 717e659e66..16e2035190 100644 --- a/apps/files/src/sidebar.js +++ b/apps/files/src/sidebar.js @@ -30,15 +30,14 @@ Vue.use(VueClipboard) Vue.prototype.t = t +// 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', () => { - - // 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 }) - // Make sure we have a proper layout if (document.getElementById('content')) {