document.getElementById('darkModeCheckbox').addEventListener('change', function(event) {
if (event.target.checked) {
ws.setTheme(DarkTheme);
} else {
}
});
document.addEventListener("DOMContentLoaded", function() {
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
ws.setTheme(DarkTheme);
} else {
}
});
This is my current code for switching themes, but I am unable to figure out the value for setTheme that turns it to light theme. I successfully imported dark theme, and it works fine, but I just can't reset it.