Skip to content

Commit

Permalink
Fix camera is not release after left (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
bianxg authored Nov 12, 2024
1 parent 7c5094c commit a0d3164
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ const App = (): JSX.Element => {
if (roomState ==='left') {
dispatch(roomActions.setState('new'));
navigate('/');
setTimeout(() => {
window.location.reload();
}, 0);
}
}, [ roomState ]);

Expand Down

0 comments on commit a0d3164

Please sign in to comment.