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') {