From 3965af19922109da2536e266bc90e37bd3d0cab7 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 8 Jun 2021 16:25:44 +0530 Subject: [PATCH] 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 --- www/common/outer/cache-store.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/www/common/outer/cache-store.js b/www/common/outer/cache-store.js index 884d98914..fdb1f7668 100644 --- a/www/common/outer/cache-store.js +++ b/www/common/outer/cache-store.js @@ -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); + }); }); }); };