From 9a8434b1f6077ad30772f08057996da4239600bf Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Mon, 29 Nov 2021 16:25:49 +0000 Subject: [PATCH] nuke db on startup --- src/placeholder-rooms.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/placeholder-rooms.html b/src/placeholder-rooms.html index 83ade20d..c5129606 100644 --- a/src/placeholder-rooms.html +++ b/src/placeholder-rooms.html @@ -60,6 +60,11 @@ let storage; const loadStorage = async () => { await platform.logger.run("login", async log => { + try { + await factory.delete(hydrogenSessionID); + } catch (err) { + console.log("failed to delete old indexeddb:", err); + } storage = await factory.create(hydrogenSessionID, log); }); };