Private
Public Access
1
0

chg: usr: add ReCaptcha overlay again to protect the game #7

This commit is contained in:
2026-04-19 21:31:08 +02:00
parent db37ab45b2
commit 51bd909879
5 changed files with 135 additions and 90 deletions

View File

@@ -54,15 +54,11 @@ const GameTimer = () => {
}, [activePlayer, overlay]);
useEffect(() => {
if (endRef.current) {
setIsRunning(false);
}
if (endRef.current) setIsRunning(false);
}, [endRef]);
useEffect(() => {
if (connectionLost) {
setIsRunning(false);
}
if (connectionLost) setIsRunning(false);
}, [connectionLost]);
useEffect(() => {
@@ -140,9 +136,7 @@ const GameTimer = () => {
}, [isRunning, activePlayer]);
useEffect(() => () => {
if (timerIntervalRef.current) {
clearInterval(timerIntervalRef.current);
}
if (timerIntervalRef.current) clearInterval(timerIntervalRef.current);
}, []);
const formatTime = seconds => {