Fix issue with reloading the page when expanded

This commit is contained in:
Ed Wilde 2023-08-01 10:39:43 +12:00
parent 3947040551
commit 47f50f78df

View File

@ -52,6 +52,11 @@ function initialiseBetterNavigator() {
if (getCookie('BetterNavigator') === 'open') {
BetterNavigator.classList.add('open');
BetterNavigator.classList.remove('collapsed');
// update the button state
BetterNavigatorStatusButton.setAttribute('aria-expanded', 'true');
BetterNavigatorStatusIcon.classList.remove('bn-icon-cog');
BetterNavigatorStatusIcon.classList.add('bn-icon-close');
}
if (BetterNavigatorLogoutForm) {