A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
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.tsindex 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) {