fix bug where navbar burger button didn't always revert to the correct light one

This commit is contained in:
Dean Attali 2020-09-16 23:47:06 +00:00
parent 040469e9ed
commit 58183b8a15
2 changed files with 7 additions and 0 deletions

View file

@ -39,6 +39,8 @@ var BeautifulJekyllJS = {
) / 1000);
if (brightness <= 125) {
$(".navbar").removeClass("navbar-light").addClass("navbar-dark");
} else {
$(".navbar").removeClass("navbar-dark").addClass("navbar-light");
}
},