From 75cdac376fee4ab8d1cf2a4e180e90a0c9e16670 Mon Sep 17 00:00:00 2001 From: palash-signoz Date: Fri, 6 May 2022 00:33:41 +0530 Subject: [PATCH] feat: cache headers is added (#1103) --- frontend/src/index.html.ejs | 108 +++++++++++++++++++++++++----------- 1 file changed, 75 insertions(+), 33 deletions(-) diff --git a/frontend/src/index.html.ejs b/frontend/src/index.html.ejs index f3a7e7879a..c5e79d2e89 100644 --- a/frontend/src/index.html.ejs +++ b/frontend/src/index.html.ejs @@ -1,40 +1,82 @@ - - - Open source Observability platform | SigNoz - - - - - - - - - - + + + + + - - - - -
+ + Open source Observability platform | SigNoz + + + + + + + + + + + - - + try { + userTheme = localStorage.getItem('theme'); + } catch (e) { + userTheme = ''; + } + + if (userTheme === 'lightMode') { + themeNode.setAttribute('href', '/css/antd.min.css'); + } else { + themeNode.setAttribute('href', '/css/antd.dark.min.css'); + } + +