mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 20:23:08 +02:00
build: set default theme for Storybook
This commit is contained in:
parent
59dc9516d0
commit
f3206d094d
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in a new issue