fix: night theme
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<!doctype html>
|
||||
<html lang="ru" data-theme="cyberpunk">
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg"/>
|
||||
|
||||
@@ -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]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user