handle suspected source of errors

atime update on cache entries blocked calendar event creation for me once
seemingly due to an unhandled DOMException triggered by localForage.
This is the only place I expect it could have come from, but the error message wasn't very helpful
so I could be wrong
pull/1/head
ansuz 2021-06-08 16:25:44 +05:30
parent fb14377bad
commit 3965af1992
1 changed files with 8 additions and 2 deletions

View File

@ -49,7 +49,10 @@ define([
}
cb(null, obj.c);
obj.t = +new Date();
cache.setItem(id, obj);
cache.setItem(id, obj, function (err) {
if (!err) { return; }
console.error(err);
});
});
});
};
@ -81,7 +84,10 @@ define([
}
cb(null, obj);
obj.t = +new Date();
cache.setItem(id, obj);
cache.setItem(id, obj, function (err) {
if (!err) { return; }
console.error(err);
});
});
});
};