better update
This commit is contained in:
parent
97d43fa727
commit
61e591a387
@ -72,9 +72,16 @@ var APP = {
|
|||||||
},
|
},
|
||||||
doLoad: function() {
|
doLoad: function() {
|
||||||
|
|
||||||
|
var _load = localStorage.getItem('_storage');
|
||||||
$('#lastupdate').empty().append('Loading...');
|
$('#lastupdate').empty().append('Loading...');
|
||||||
this._storage = JSON.parse(localStorage.getItem('_storage'));
|
if (_load != null)
|
||||||
this.lastUpdated = this._storage.lastupdated;
|
this._storage = JSON.parse(_load);
|
||||||
|
else
|
||||||
|
this._storage = {
|
||||||
|
lastupdated: null,
|
||||||
|
feeds: {}
|
||||||
|
};
|
||||||
|
this.lastUpdated = this._storage.lastupdated || null;
|
||||||
this.showList();
|
this.showList();
|
||||||
},
|
},
|
||||||
showList: function() {
|
showList: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user