[3.1.x] Refs #31034 -- Used === in nav_sidebar.js admin JS to avoid possible coercion issues.

Backport of e46f700e39 from master
This commit is contained in:
Jon Dufresne 2020-05-18 07:37:05 +02:00 committed by Mariusz Felisiak
parent ef19aec2ca
commit 16716551bd
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
main.classList.toggle('shifted', navSidebarIsOpen === 'true'); main.classList.toggle('shifted', navSidebarIsOpen === 'true');
toggleNavSidebar.addEventListener('click', function() { toggleNavSidebar.addEventListener('click', function() {
if (navSidebarIsOpen == 'true') { if (navSidebarIsOpen === 'true') {
navSidebarIsOpen = 'false'; navSidebarIsOpen = 'false';
} else { } else {
navSidebarIsOpen = 'true'; navSidebarIsOpen = 'true';