From 3ac0ed3d78823cb854584f4a80e87209671ffce6 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Mon, 15 Jan 2024 19:09:09 +0100 Subject: [PATCH] config migration: also migrate indexeddb --- src/main/constants.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/constants.ts b/src/main/constants.ts index 9b1a7e9..5c4ecd7 100644 --- a/src/main/constants.ts +++ b/src/main/constants.ts @@ -18,6 +18,10 @@ if (existsSync(LEGACY_DATA_DIR)) { renameSync(join(LEGACY_DATA_DIR, file), join(DATA_DIR, file)); } rmdirSync(LEGACY_DATA_DIR); + renameSync( + join(app.getPath("appData"), "VencordDesktop", "IndexedDB"), + join(DATA_DIR, "sessionData", "IndexedDB") + ); } catch (e) { console.error("Migration failed", e); }