Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: do not throw if backup doesn't contain .nnbackup file

Abdullah Atta5f53593a26fa
diff --git a/apps/web/src/common/index.ts b/apps/web/src/common/index.ts
index 49ee45367..e0d140c71 100644
--- a/apps/web/src/common/index.ts
+++ b/apps/web/src/common/index.ts
@@ -195,7 +195,10 @@ export async function restoreBackupFile(backupFile: File) {
}
entries.push(entry);
}
- if (!isValid) throw new Error("Invalid backup.");
+ if (!isValid)
+ console.warn(
+ "The backup file does not contain the verification .nnbackup file."
+ );
await db.transaction(async () => {
for (const entry of entries) {