Skip to content
Snippets Groups Projects
Commit 2261629f authored by John Molakvoæ's avatar John Molakvoæ Committed by npmbuildbot[bot]
Browse files

Init OCA.Files.Sidebar right away

parent 31c74e87
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -30,15 +30,14 @@ Vue.use(VueClipboard) ...@@ -30,15 +30,14 @@ Vue.use(VueClipboard)
Vue.prototype.t = t Vue.prototype.t = t
window.addEventListener('DOMContentLoaded', () => { // Init Sidebar Service
if (!window.OCA.Files) {
// Init Sidebar Service window.OCA.Files = {}
if (!window.OCA.Files) { }
window.OCA.Files = {} Object.assign(window.OCA.Files, { Sidebar: new Sidebar() })
} Object.assign(window.OCA.Files.Sidebar, { Tab })
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 // Make sure we have a proper layout
if (document.getElementById('content')) { if (document.getElementById('content')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment