diff --git a/src/components/connectOverlay/ConnectOverlay.tsx b/src/components/connectOverlay/ConnectOverlay.tsx index 1abd12c..aa012d3 100644 --- a/src/components/connectOverlay/ConnectOverlay.tsx +++ b/src/components/connectOverlay/ConnectOverlay.tsx @@ -56,7 +56,7 @@ const ConnectOverlay: React.FC = ({ useEffect(() => { setDarkMode(WebApp.colorScheme === 'dark'); document.documentElement.classList.toggle('dark', darkMode); - localStorage.setItem('theme', darkMode ? 'dark' : 'light'); + window.localStorage.setItem('theme', darkMode ? 'dark' : 'light'); }, [WebApp.colorScheme]); const [networksExpanded, setNetworksExpanded] = useState(true);