mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-25 07:59:48 +01:00
mobile: fix crash during backup
This commit is contained in:
@@ -252,7 +252,7 @@ async function run(progress = false, context) {
|
||||
} catch (e) {
|
||||
ToastManager.error(e, "Backup failed", context || "global");
|
||||
|
||||
if (e.message.includes("android.net.Uri") && androidBackupDirectory) {
|
||||
if (e?.message?.includes("android.net.Uri") && androidBackupDirectory) {
|
||||
SettingsService.setProperty("backupDirectoryAndroid", null);
|
||||
return run(progress, context);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user