We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8859f39 commit d9f285cCopy full SHA for d9f285c
gui/src/context/LocalStorage.tsx
@@ -34,21 +34,6 @@ export const LocalStorageProvider: React.FC<{ children: React.ReactNode }> = ({
34
syncWithLocalStorage();
35
}, []);
36
37
- // Listen for localStorage changes from other tabs
38
- useEffect(() => {
39
- const handleStorageChange = (event: StorageEvent) => {
40
- if (event.key === "fontSize") {
41
- syncWithLocalStorage();
42
- }
43
- };
44
-
45
- window.addEventListener("storage", handleStorageChange);
46
47
- return () => {
48
- window.removeEventListener("storage", handleStorageChange);
49
50
- }, []);
51
52
// Listen for current tab changes using CustomEvent
53
useEffect(() => {
54
const handleLocalStorageChange = (event: CustomEvent) => {
0 commit comments