about summary refs log tree commit diff
path: root/src/state/persisted
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-04-24 01:07:18 +0100
committerGitHub <noreply@github.com>2024-04-23 17:07:18 -0700
commit24da3a8f4e81e0f7694b02545711536414dcd17a (patch)
tree9d11f269bdb243d752d8e0a060f844c4af7c4916 /src/state/persisted
parent0847e2752b21b6556a1c9302cebad60bb877c0de (diff)
downloadvoidsky-24da3a8f4e81e0f7694b02545711536414dcd17a.tar.zst
Disable autoplay by default if prefers-reduced-motion (#3671)
Diffstat (limited to 'src/state/persisted')
-rw-r--r--src/state/persisted/schema.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/persisted/schema.ts b/src/state/persisted/schema.ts
index 4076a582a..714719c2b 100644
--- a/src/state/persisted/schema.ts
+++ b/src/state/persisted/schema.ts
@@ -1,6 +1,6 @@
 import {z} from 'zod'
 
-import {deviceLocales} from '#/platform/detection'
+import {deviceLocales, prefersReducedMotion} from '#/platform/detection'
 
 const externalEmbedOptions = ['show', 'hide'] as const
 
@@ -98,5 +98,5 @@ export const defaults: Schema = {
   lastSelectedHomeFeed: undefined,
   pdsAddressHistory: [],
   disableHaptics: false,
-  disableAutoplay: false,
+  disableAutoplay: prefersReducedMotion,
 }