Remove const

Remove const
This commit is contained in:
Cøbra 2021-02-17 20:41:39 +01:00 committed by GitHub
parent 964c3cd324
commit 8058cb5710
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,8 +207,8 @@ function addAnchorLinks() {
/* Start dark mode toggler */
function toggleDarkMode() {
const toggleSwitch = document.querySelector('.dark-theme-toggle input[type="checkbox"]');
const currentTheme = localStorage.getItem('theme');
var toggleSwitch = document.querySelector('.dark-theme-toggle input[type="checkbox"]');
var currentTheme = localStorage.getItem('theme');
if (currentTheme) {
document.documentElement.setAttribute('data-theme', currentTheme);