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]); });