fix(theme): persist switcher accent for SSR
This commit is contained in:
@@ -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