Skip to content
Snippets Groups Projects
Commit 2ead7732 authored by John Molakvoæ's avatar John Molakvoæ Committed by npmbuildbot[bot]
Browse files
parent 9979b6d4
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.
......@@ -37,12 +37,13 @@ Object.assign(window.OCA.Files, { Sidebar: new Sidebar() })
Object.assign(window.OCA.Files.Sidebar, { Tab })
window.addEventListener('DOMContentLoaded', function() {
// Make sure we have a proper layout
if (document.getElementById('content')) {
const contentElement = document.querySelector('body > .content')
|| document.querySelector('body > #content')
// Make sure we have a proper layout
if (contentElement) {
// Make sure we have a mountpoint
if (!document.getElementById('app-sidebar')) {
const contentElement = document.getElementById('content')
const sidebarElement = document.createElement('div')
sidebarElement.id = 'app-sidebar'
contentElement.appendChild(sidebarElement)
......
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