Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Improve sqlite flow in browser extension (#1325)

Leendert de Borsta69b1049a699
diff --git a/apps/browser-extension/src/utils/SqliteClient.ts b/apps/browser-extension/src/utils/SqliteClient.ts
index 73aa483a0..fd8a24740 100644
--- a/apps/browser-extension/src/utils/SqliteClient.ts
+++ b/apps/browser-extension/src/utils/SqliteClient.ts
@@ -124,6 +124,9 @@ export class SqliteClient {
}
try {
+ // Execute vacuum command to free up space before exporting (because of potential temp tables etc.)
+ this.db.run('VACUUM');
+
// Export database to Uint8Array
const binaryArray = this.db.export();