mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
core: use isolated storage for each test for more reliability
This commit is contained in:
committed by
Abdullah Atta
parent
1190da7c91
commit
d384aa9dcf
@@ -49,6 +49,8 @@ export default class Backup {
|
||||
async export(type, encrypt = false) {
|
||||
if (!validTypes.some((t) => t === type))
|
||||
throw new Error("Invalid type. It must be one of 'mobile' or 'web'.");
|
||||
if (encrypt && !(await this._db.user.getUser()))
|
||||
throw new Error("Please login to create encrypted backups.");
|
||||
|
||||
let keys = await this._db.storage.getAllKeys();
|
||||
let data = filterData(
|
||||
|
||||
Reference in New Issue
Block a user