build: set default theme for Storybook

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-04-23 12:47:43 +09:00 committed by GitHub
parent 59dc9516d0
commit f3206d094d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ function loadTheme(applyTheme: typeof import('../src/scripts/theme')['applyTheme
const theme = themes[document.documentElement.dataset.misskeyTheme]; const theme = themes[document.documentElement.dataset.misskeyTheme];
if (theme) { if (theme) {
applyTheme(themes[document.documentElement.dataset.misskeyTheme]); applyTheme(themes[document.documentElement.dataset.misskeyTheme]);
} else if (isChromatic()) { } else {
applyTheme(themes['l-light']); applyTheme(themes['l-light']);
} }
const observer = new MutationObserver((entries) => { const observer = new MutationObserver((entries) => {