diff --git a/components/theme-client.php b/components/theme-client.php index c2f76a1..48ae94d 100644 --- a/components/theme-client.php +++ b/components/theme-client.php @@ -38,7 +38,7 @@ $themeSurface = isset($themeSurface) && in_array($themeSurface, ['public', 'priv const hex = Array.from(bytes, byte => byte.toString(16).padStart(2, '0')).join(''); return hex.slice(0, 8) + '-' + hex.slice(8, 12) + '-' + hex.slice(12, 16) + '-' + hex.slice(16, 20) + '-' + hex.slice(20); } - function refresh() { const value = read(); apply(value ? themeOf(value) : initial); } + function refresh() { const value = read(); apply(value ? themeOf(value) : shown); } function choose(theme) { if (theme !== 'light' && theme !== 'dark') return; const from = shown;