From fc14205f2e5d47dfd8f1118d455b867564f20892 Mon Sep 17 00:00:00 2001 From: Nero Ignis Date: Mon, 19 Apr 2021 09:24:00 +0200 Subject: [PATCH] Fix; --- js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 5dcb4a3..06732b5 100644 --- a/js/app.js +++ b/js/app.js @@ -147,7 +147,7 @@ let game = new Vue({ let savedBuildings = JSON.parse(localStorage.getItem('buildings')); if (savedBuildings.length !== this.buildings.length) { - localStorage.setItem('buildings', this.buildings.stringify()); + localStorage.setItem('buildings', JSON.stringify(this.buildings)); alert('Buildings have been resetted due to an important update.') } },