Log on failure to fetch storage
// FREEBIE
This commit is contained in:
parent
67c7a06c28
commit
83629df560
1 changed files with 3 additions and 1 deletions
|
@ -58,7 +58,9 @@
|
||||||
|
|
||||||
fetch: function() {
|
fetch: function() {
|
||||||
return new Promise(function(resolve) {
|
return new Promise(function(resolve) {
|
||||||
items.fetch({reset: true}).always(resolve);
|
items.fetch({reset: true}).fail(function() {
|
||||||
|
console.log('Failed to fetch from storage');
|
||||||
|
}).always(resolve);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue