made dark mode store locally (hopefully)
This commit is contained in:
parent
5fe986e78f
commit
46660882bb
@ -71,6 +71,10 @@ $(document).ready(function() {
|
||||
localStorage.setItem('darkModeOn', false);
|
||||
}
|
||||
}
|
||||
if (localStorage.getItem('darkModeOn')) {
|
||||
var checked = true;
|
||||
updateDarkMode(checked);
|
||||
}
|
||||
$("#darkModeCheckbox").on("change", function() {
|
||||
var checked = $("#darkModeCheckbox").is(":checked");
|
||||
updateDarkMode(checked);
|
||||
|
Loading…
x
Reference in New Issue
Block a user