adds chart title to window, adds light mode to chartswindowpage

This commit is contained in:
litoral05
2026-05-28 08:51:22 +01:00
parent c54c2c6518
commit 65b419c5ca
4 changed files with 59 additions and 41 deletions
+4 -1
View File
@@ -34,7 +34,10 @@ function App() {
const isChartWindow = window.location.pathname.startsWith("/chart-window/");
if (isChartWindow) {
return <ChartWindowPage theme="dark" />;
const params = new URLSearchParams(window.location.search);
const theme = params.get("theme") === "light" ? "light" : "dark";
return <ChartWindowPage theme={theme} />;
}
return (