diff options
Diffstat (limited to 'pub')
-rw-r--r-- | pub/blankplays.js | 5 | ||||
-rw-r--r-- | pub/index.html | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/pub/blankplays.js b/pub/blankplays.js index 13a1232..8b80804 100644 --- a/pub/blankplays.js +++ b/pub/blankplays.js @@ -75,6 +75,9 @@ function loadAttempt() { let saveDataStr = localStorage.getItem(`attempt-${lexicon}-${challengeId}`); if (!saveDataStr) return; let saveData = JSON.parse(saveDataStr); + if (saveData.version !== 2) { + return; + } let solution = saveData.solution.split(';'); for (let row = 0; row < N; row++) { for (let col = 0; col < N; col++) { @@ -105,7 +108,7 @@ function saveAttempt() { for (let col = 0; col < N; col++) solution.push(currAttempt[row][col].join(',')); let saveData = { - version: 1, + version: 2, solution: solution.join(';'), finished: finished, eliminated: eliminated.join(''), diff --git a/pub/index.html b/pub/index.html index ce7c9d8..b09e55a 100644 --- a/pub/index.html +++ b/pub/index.html @@ -6,7 +6,7 @@ <title>BlankPlays</title> <link rel="icon" href="/icon.png"> <link rel="stylesheet" href="/index.css?v=1"> - <script src="/blankplays.js?v=4" id="main-script" async></script> + <script src="/blankplays.js?v=5" id="main-script" async></script> </head> <body> <script blocking="render"> |