diff --git a/html/js/app.prod.js b/html/js/app.prod.js index 92fc268..2db37fd 100644 --- a/html/js/app.prod.js +++ b/html/js/app.prod.js @@ -72,9 +72,16 @@ var APP = { }, doLoad: function() { + var _load = localStorage.getItem('_storage'); $('#lastupdate').empty().append('Loading...'); - this._storage = JSON.parse(localStorage.getItem('_storage')); - this.lastUpdated = this._storage.lastupdated; + if (_load != null) + this._storage = JSON.parse(_load); + else + this._storage = { + lastupdated: null, + feeds: {} + }; + this.lastUpdated = this._storage.lastupdated || null; this.showList(); }, showList: function() {