Anonymous

MediaWiki:Common.js: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 548: Line 548:
setStickyHeaderTop();
setStickyHeaderTop();
$(window).resize(setStickyHeaderTop);
$(window).resize(setStickyHeaderTop);
}
const darkMode = localStorage.getItem("darkMode");
if (darkMode !== "true") {
    localStorage.setItem("darkMode", true);
} else {
    localStorage.setItem("darkMode", false);
}
}
});
});