adds chart title to window, adds light mode to chartswindowpage
This commit is contained in:
+4
-1
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user