mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-03 23:49:20 +09:00
0e4a111f81
Resolve #7779
4 lines
106 B
TypeScript
4 lines
106 B
TypeScript
export function isDeviceDarkmode() {
|
|
return window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
}
|