Compare commits

..

No commits in common. 'e20b9c633b1c834f24d53336454f061f6214a07a' and '5e41a540a65e7098a4984aa581fe831060a9fffd' have entirely different histories.

@ -67,20 +67,12 @@ if (document.body.clientWidth < 940) {
]
]
const checkMobileTheme = () => {
// Switch the theme when the theme switcher is clicked.
themeSwitcher.addEventListener('change', () => {
const theme = themeVariables[themeSwitcher.checked ? 1 : 0];
theme.forEach(variable => {
document.documentElement.style.setProperty(`--${variable.name}`, variable.value);
});
};
// Ensure IE compatibility
if (document.addEventListener) {
themeSwitcher.addEventListener('change', checkMobileTheme);
} else if (document.attachEvent) {
themeSwitcher.attachEvent('onchange', checkMobileTheme);
}
checkMobileTheme();
});
}
Loading…
Cancel
Save