fix(a11y): default "prefers reduced motion" to OS/browser default (#696)

fixes #695
This commit is contained in:
Nolan Lawson 2018-11-26 13:13:52 -08:00 committed by GitHub
parent 9c74a072bf
commit 7f1ec6036d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ export const store = new PinaforeStore({
repliesShown: {}, repliesShown: {},
autoplayGifs: false, autoplayGifs: false,
markMediaAsSensitive: false, markMediaAsSensitive: false,
reduceMotion: false, reduceMotion: !process.browser || window.matchMedia('(prefers-reduced-motion: reduce)').matches,
pinnedPages: {}, pinnedPages: {},
instanceLists: {}, instanceLists: {},
pinnedStatuses: {}, pinnedStatuses: {},