From c6b2b227c037075247051e2c6569f1b1377aa686 Mon Sep 17 00:00:00 2001 From: Panfilov Konstantin Date: Wed, 21 Oct 2026 20:46:23 +0300 Subject: [PATCH] =?UTF-8?q?fix(theme):=20=D1=81=D0=BE=D1=85=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D1=8F=D1=82=D1=8C=20=D1=82=D0=B5=D0=BA=D1=83=D1=89=D0=B8?= =?UTF-8?q?=D0=B9=20=D0=B2=D1=8B=D0=B1=D0=BE=D1=80=20=D0=B1=D0=B5=D0=B7=20?= =?UTF-8?q?storage=20(#13)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/theme-client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;