summaryrefslogtreecommitdiff
path: root/packages/frontend/src/store.ts
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2025-10-27 18:41:03 +0900
committerGitHub <noreply@github.com>2025-10-27 18:41:03 +0900
commit4e16e23acd6db761ac7490c7a4c0b84cee490389 (patch)
treee109f0e1a60fbd01ab774ab3adcb25fb1d1fab0d /packages/frontend/src/store.ts
parent[skip ci] Update CHANGELOG.md (prepend template) (diff)
downloadmisskey-4e16e23acd6db761ac7490c7a4c0b84cee490389.tar.gz
misskey-4e16e23acd6db761ac7490c7a4c0b84cee490389.tar.bz2
misskey-4e16e23acd6db761ac7490c7a4c0b84cee490389.zip
fix(frontend): confettiの実行がアニメーション設定を考慮していない問題を修正 (#16714)
* fix(frontend): confettiの実行がアニメーション設定を考慮していない問題を修正 * Update Changelog --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Diffstat (limited to 'packages/frontend/src/store.ts')
-rw-r--r--packages/frontend/src/store.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/frontend/src/store.ts b/packages/frontend/src/store.ts
index 87b2637a64..073fbba0fb 100644
--- a/packages/frontend/src/store.ts
+++ b/packages/frontend/src/store.ts
@@ -7,6 +7,7 @@ import { markRaw, ref } from 'vue';
import * as Misskey from 'misskey-js';
import lightTheme from '@@/themes/l-light.json5';
import darkTheme from '@@/themes/d-green-lime.json5';
+import { prefersReducedMotion } from '@@/js/config.js';
import { hemisphere } from '@@/js/intl-const.js';
import type { DeviceKind } from '@/utility/device-kind.js';
import type { Plugin } from '@/plugin.js';
@@ -220,11 +221,11 @@ export const store = markRaw(new Pizzax('base', {
},
animation: {
where: 'device',
- default: !window.matchMedia('(prefers-reduced-motion)').matches,
+ default: !prefersReducedMotion,
},
animatedMfm: {
where: 'device',
- default: !window.matchMedia('(prefers-reduced-motion)').matches,
+ default: !prefersReducedMotion,
},
advancedMfm: {
where: 'device',
@@ -248,7 +249,7 @@ export const store = markRaw(new Pizzax('base', {
},
disableShowingAnimatedImages: {
where: 'device',
- default: window.matchMedia('(prefers-reduced-motion)').matches,
+ default: prefersReducedMotion,
},
emojiStyle: {
where: 'device',