fixed so the app is working offline again
This commit is contained in:
parent
22d6761ba3
commit
aec6cd079b
3 changed files with 24 additions and 9 deletions
|
@ -150,13 +150,12 @@ TinyTinyRSS.prototype.setArticleUnstarred = function(article, callback) {
|
|||
};
|
||||
|
||||
TinyTinyRSS.prototype.append = function(key, array) {
|
||||
|
||||
var tmp = localStorage[key];
|
||||
|
||||
if (typeof tmp !== "undefined") tmp = JSON.parse(tmp);
|
||||
else tmp = [];
|
||||
|
||||
tmp.concat(options.items);
|
||||
tmp.concat(array);
|
||||
localStorage[key] = JSON.stringify(tmp);
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue