Skip to content

Commit

Permalink
set sidebarExpanded value into localStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
muratmerdoglu-dp committed Aug 28, 2024
1 parent a43d9fe commit 87f17cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/scripts/loggedin.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ function toggleSidebar() {
const sidebarSubitems = document.querySelectorAll('.subitem');
const legalLinks = document.querySelectorAll('.legal-link');

window.localStorage.setItem('sidebarExpanded', !sidebar.classList.contains('visible'));

if (sidebar) {
if (sidebar.classList.contains('hidden')) {
sidebar.classList.remove('hidden');
Expand Down

0 comments on commit 87f17cd

Please sign in to comment.