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