From 06a6dca656871a920092dc6767990ab70b9fc6c2 Mon Sep 17 00:00:00 2001 From: Nikita Kiselev Date: Tue, 22 Jul 2025 23:31:39 +0300 Subject: [PATCH] fix: night theme --- spa/index.html | 2 +- spa/src/main.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spa/index.html b/spa/index.html index 41b2ee3..fb9591a 100644 --- a/spa/index.html +++ b/spa/index.html @@ -1,5 +1,5 @@ - + diff --git a/spa/src/main.js b/spa/src/main.js index 72e5365..ec4b179 100644 --- a/spa/src/main.js +++ b/spa/src/main.js @@ -31,6 +31,7 @@ import {useProductsStore} from "@/stores/ProductsStore.js"; import {useCategoriesStore} from "@/stores/CategoriesStore.js"; if (config.night_auto) { + document.documentElement.setAttribute('data-theme', config.theme[this.colorScheme]); window.Telegram.WebApp.onEvent('themeChanged', function () { document.documentElement.setAttribute('data-theme', config.theme[this.colorScheme]); });