From 7e1d6d230cd30b987d2267e8b7d798d5474c846a Mon Sep 17 00:00:00 2001 From: whynotkimhari Date: Fri, 25 Aug 2023 13:13:39 +0700 Subject: [PATCH] delete anonymous option --- js/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/script.js b/js/script.js index 23aa582..cad3c74 100644 --- a/js/script.js +++ b/js/script.js @@ -63,7 +63,7 @@ function handlePlayerName() { swal({ text: 'Enter your name to save your records', content: "input", - buttons: ['Anonymous', 'OK'] + buttons: 'OK' }) .then(text => { if (text) { @@ -127,6 +127,7 @@ function handlePlayerName() { else location.reload(); }) } + else location.reload(); }) }