From ac00363621ab3742671250ba3d874a5a862ad196 Mon Sep 17 00:00:00 2001 From: Nero Ignis Date: Wed, 21 Apr 2021 23:32:24 +0200 Subject: [PATCH] Autoformat; Remove old functions; --- js/app.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/js/app.js b/js/app.js index f84fe10..4db99b3 100644 --- a/js/app.js +++ b/js/app.js @@ -1,11 +1,3 @@ -Storage.prototype.setObj = function(key, obj) { - return this.setItem(key, JSON.stringify(obj)) -} - -Storage.prototype.getObj = function(key) { - return JSON.parse(this.getItem(key)) -} - let game = new Vue({ el: '#root', data: { @@ -515,7 +507,7 @@ let game = new Vue({ let rewardSum = 0; const maxResourcesPerQuest = 3; - + let unlockedResources = []; Object.keys(game.resources).forEach((resource) => { if (game.resources[resource].unlocked && resource !== 'gold') {