[Glitch] HTML string attributes set as booleans

Port a425915ce7 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Nick Schonning
2023-04-04 10:33:33 -04:00
committed by Claire
parent ce12934f5b
commit 0f62451424
3 changed files with 6 additions and 7 deletions

View File

@@ -183,10 +183,10 @@ function main() {
if (sidebar.classList.contains('visible')) {
document.body.style.overflow = null;
toggleButton.setAttribute('aria-expanded', false);
toggleButton.setAttribute('aria-expanded', 'false');
} else {
document.body.style.overflow = 'hidden';
toggleButton.setAttribute('aria-expanded', true);
toggleButton.setAttribute('aria-expanded', 'true');
}
toggleButton.classList.toggle('active');