4 lines
132 B
JavaScript
4 lines
132 B
JavaScript
|
if (window.matchMedia &&
|
||
|
window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||
|
document.body.classList.add('dark');
|
||
|
}
|