fix(theme): persist switcher accent for SSR
This commit is contained in:
1 parent
effed1c3cf
commit
dd9b7a289a
8 files changed
+11
-25
No files matched your search
@@ -30,6 +30,8 @@ size: string = "default"
|
||||
|
||||
functions {
|
||||
client function choose(type, value) {
|
||||
if (type === "color") window.wrnAccent?.set(value)
|
||||
if (type === "theme") window.wrnTheme?.set(value)
|
||||
output[type]({ value: value })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user