config migration: also migrate indexeddb

This commit is contained in:
Vendicated 2024-01-15 19:09:09 +01:00
parent eddc1de784
commit 3ac0ed3d78
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -18,6 +18,10 @@ if (existsSync(LEGACY_DATA_DIR)) {
renameSync(join(LEGACY_DATA_DIR, file), join(DATA_DIR, file)); renameSync(join(LEGACY_DATA_DIR, file), join(DATA_DIR, file));
} }
rmdirSync(LEGACY_DATA_DIR); rmdirSync(LEGACY_DATA_DIR);
renameSync(
join(app.getPath("appData"), "VencordDesktop", "IndexedDB"),
join(DATA_DIR, "sessionData", "IndexedDB")
);
} catch (e) { } catch (e) {
console.error("Migration failed", e); console.error("Migration failed", e);
} }