Skip to content

Commit 7208f8b

Browse files
committed
Update script.js
1 parent 5389a93 commit 7208f8b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

cyber_fit/script.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -490,13 +490,7 @@ inputField.addEventListener('input', function() {
490490

491491
function startGame() {
492492
// Retrieve the player's name from the input field
493-
playerName = document.getElementById('playerName').value;
494-
495-
// Check if the player entered a name
496-
if (playerName.trim() === "") {
497-
alert("Please enter your name before starting the game.");
498-
}
499-
493+
playerName = document.getElementById('playerName').value;
500494
document.getElementById('startgame').style.visibility = 'hidden';
501495

502496
resetPivotPoints();

0 commit comments

Comments
 (0)