1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

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

This commit is contained in:
Jon Dufresne 2020-05-18 07:37:05 +02:00 committed by Mariusz Felisiak
parent 94f63b926f
commit e46f700e39

View File

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