MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 551: Line 551:


const darkMode = localStorage.getItem("darkMode");
const darkMode = localStorage.getItem("darkMode");
if (darkMode !== "true") {
if (darkMode === "true") {
    localStorage.setItem("darkMode", true);
    localStorage.setItem("darkMode", true);
} else {
} else {