Skip to content

Commit

Permalink
Auto refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
ggggg committed Jan 15, 2025
1 parent 167b493 commit 1783092
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frontend/src/pages/Room/joan6.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,15 @@ export const Joan6 = () => {
}, 1000);
return () => clearInterval(interval);
}, [update]);
useEffect(() => {
const interval = setInterval(
() => {
window.location.reload();
},
1000 * 60 * 60 * 24,
);
return () => clearInterval(interval);
});

return (
<Grid
Expand Down

0 comments on commit 1783092

Please sign in to comment.