1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-27 13:08:07 +09:00
hotomoe/packages/client/src/scripts/is-device-darkmode.ts
syuilo 0e4a111f81 refactoring
Resolve #7779
2021-11-12 02:02:25 +09:00

4 lines
106 B
TypeScript

export function isDeviceDarkmode() {
return window.matchMedia('(prefers-color-scheme: dark)').matches;
}