Add PlatformInfo module (#4877)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export function getIsReducedMotionEnabled(): boolean {
|
||||
if (typeof window === 'undefined') {
|
||||
return false
|
||||
}
|
||||
return window.matchMedia('(prefers-reduced-motion: reduce)').matches
|
||||
}
|
||||
Reference in New Issue
Block a user