mirror of
https://github.com/kokonect-link/cherrypick
synced 2025-01-06 01:43:21 +09:00
4 lines
106 B
TypeScript
4 lines
106 B
TypeScript
export function isDeviceDarkmode() {
|
|
return window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
}
|