diff --git a/script/index.js b/script/index.js index 17cbd3f..d45d69a 100644 --- a/script/index.js +++ b/script/index.js @@ -20,7 +20,7 @@ function main(game) { const data = localStorage.getItem('data') - if (data) { + if (typeof(data) === 'string') { const checkInputsResult = Object.values(JSON.parse(data))