chg: usr: add ReCaptcha overlay again to protect the game #7
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user