diff --git a/multi.html b/multi.html
index 70bea4c6..348432da 100644
--- a/multi.html
+++ b/multi.html
@@ -933,6 +933,7 @@ var formation = new Formation(teamsCount,5);
diff --git a/script.js b/script.js
index 10817c3e..e9f8606f 100644
--- a/script.js
+++ b/script.js
@@ -1853,8 +1853,16 @@ function initialize(event) {
{
const table = this.parentNode.parentNode.parentNode.parentNode;
currentPlayerData = table.data;
- localStorage.setItem(cfgPrefix + "default-player-name", table.getAttribute("data-player-name"));
- table.parentNode.querySelector("[name=default-player-data]").checked = true;
+ const cfgName = cfgPrefix + "default-player-name";
+ const dataPlayerName = table.getAttribute("data-player-name");
+ const checkInput = table.parentNode.querySelector("[name=default-player-data]");
+ if (localStorage.getItem(cfgName) === dataPlayerName) {
+ localStorage.removeItem(cfgName);
+ checkInput.checked = false;
+ } else {
+ localStorage.setItem(cfgName, dataPlayerName);
+ checkInput.checked = true;
+ }
}
playerDataFrame.playerList.add = function(data) {
this.appendChild(this.newPlayerData(data));
diff --git a/solo.html b/solo.html
index a4d89514..05e2952c 100644
--- a/solo.html
+++ b/solo.html
@@ -790,6 +790,7 @@ var formation = new Formation(teamsCount,6);
diff --git a/triple.html b/triple.html
index 5f2f1882..cd0f392a 100644
--- a/triple.html
+++ b/triple.html
@@ -1729,6 +1729,7 @@ var formation = new Formation(teamsCount,6);