ci(#10336): disable animation on chromatic

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-04-02 23:26:35 +09:00
parent d57a504cac
commit ddb1635a46
No known key found for this signature in database
GPG key ID: 3E87B98A3F6BAB99

View file

@ -52,8 +52,9 @@ queueMicrotask(() => {
import('../src/directives'),
import('../src/widgets'),
import('../src/scripts/theme'),
import('../src/store'),
import('../src/os'),
]).then(([{ default: components }, { default: directives }, { default: widgets }, { applyTheme }, os]) => {
]).then(([{ default: components }, { default: directives }, { default: widgets }, { applyTheme }, { defaultStore }, os]) => {
setup((app) => {
moduleInitialized = true;
if (app[appInitialized]) {
@ -65,6 +66,9 @@ queueMicrotask(() => {
directives(app);
widgets(app);
misskeyOS = os;
if (isChromatic()) {
defaultStore.set('animation', false);
}
});
});
});