mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 10:19:10 +08:00
fix: light mode issues are fixed (#1319)
Co-authored-by: Ankit Nayan <ankit@signoz.io>
This commit is contained in:
parent
d0e272b679
commit
a25e7a64ce
@ -55,7 +55,7 @@
|
|||||||
id="appMode"
|
id="appMode"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
type="text/css"
|
type="text/css"
|
||||||
href="/css/antd.dark.min.css"
|
rel="preload"
|
||||||
/>
|
/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -64,13 +64,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
const themeNode = document.getElementById('appMode');
|
const themeNode = document.getElementById('appMode');
|
||||||
let userTheme;
|
let userTheme = localStorage.getItem('theme') || "";
|
||||||
|
|
||||||
try {
|
|
||||||
userTheme = localStorage.getItem('theme');
|
|
||||||
} catch (e) {
|
|
||||||
userTheme = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (userTheme === 'lightMode') {
|
if (userTheme === 'lightMode') {
|
||||||
themeNode.setAttribute('href', '/css/antd.min.css');
|
themeNode.setAttribute('href', '/css/antd.min.css');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user