Skip to content

Commit

Permalink
chore: set storage value
Browse files Browse the repository at this point in the history
  • Loading branch information
muratmerdoglu-dp authored Aug 30, 2024
1 parent 87f17cd commit 792a872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/scripts/loggedin.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function toggleSidebar() {
const sidebarSubitems = document.querySelectorAll('.subitem');
const legalLinks = document.querySelectorAll('.legal-link');

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

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

0 comments on commit 792a872

Please sign in to comment.