4 lines
127 B
TypeScript
4 lines
127 B
TypeScript
|
export function isDeviceDarkmode() {
|
||
|
return window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||
|
}
|