Merge branch 'developer' of bitbucket.org:equilibriumito/gabinete-digital into developer

This commit is contained in:
Peter Maquiran
2021-08-20 15:44:14 +01:00
14 changed files with 35 additions and 38 deletions
+7 -3
View File
@@ -16,15 +16,19 @@ const { Storage } = Plugins; */
// Get the value
async get(key: string) {
const ret = await this.storage.get(key).then((val) => { return val; });
return JSON.parse(unescape(atob(ret)));
try {
return JSON.parse(unescape(atob(ret)));
} catch (error) {
return unescape(atob(ret))
}
}
async remove(key: string){
await this.storage.remove(key);
}
/*
/*
// Get the value
async get(storageKey: string) {
const ret = await Storage.get({ key: storageKey });