Fix for missing localstorage

This commit is contained in:
unknown 2015-07-27 14:04:36 +01:00
parent 6e76d564ab
commit 97d43fa727

View File

@ -73,8 +73,12 @@ var APP = {
},
doLoad: function() {
var _load = localStorage.getItem('_storage');
$('#lastupdate').empty().append('Loading...');
this._storage = JSON.parse(localStorage.getItem('_storage'));
if (_load != null)
this._storage = JSON.parse(_load);
else
this._storage = {lastupdated: null,feeds: {}};
this.lastUpdated = this._storage.lastupdated;
this.showList();
},