fix: remove/clear is not async

This commit is contained in:
thecodrr
2020-02-20 12:11:16 +05:00
parent 22f0260c37
commit 389e4612db
3 changed files with 6 additions and 6 deletions

View File

@@ -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);