Skip to content

Commit

Permalink
Update sidebar.js
Browse files Browse the repository at this point in the history
  • Loading branch information
RasperRevision committed Jul 7, 2024
1 parent c80aa25 commit db7f94a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ document.addEventListener('DOMContentLoaded', function () {
fetch('/sidebar_header.html')
.then(response => response.text())
.then(html => {
document.querySelector('.main_wrapper').innerHTML = html + document.querySelector('.main_wrapper').innerHTML;
const sidebar_header_wrapper = document.createElement('div');
sidebar_header_wrapper.innerHTML = html;
document.querySelector('.main_wrapper').insertBefore(sidebar_header_wrapper, document.querySelector('.main_wrapper').children[0])
}).catch(error => console.error('Error fetching sidebar:', error));

var icon = document.createElement('div');
Expand Down

0 comments on commit db7f94a

Please sign in to comment.