mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
fix: remove/clear is not async
This commit is contained in:
@@ -9,11 +9,11 @@ export default class Storage {
|
||||
let data = await this.storage.read(key);
|
||||
return data;
|
||||
}
|
||||
clear() {
|
||||
this.storage.clear();
|
||||
async clear() {
|
||||
await this.storage.clear();
|
||||
}
|
||||
remove(key) {
|
||||
this.storage.remove(key);
|
||||
async remove(key) {
|
||||
await this.storage.remove(key);
|
||||
}
|
||||
encrypt(password, data) {
|
||||
return this.storage.encrypt(password, data);
|
||||
|
||||
Reference in New Issue
Block a user