Profile notification layout add desc fild

This commit is contained in:
Eudes Inácio
2021-08-20 16:43:17 +01:00
parent 126e62d587
commit 84d24dbbaf
7 changed files with 146 additions and 20 deletions
+5 -1
View File
@@ -16,7 +16,11 @@ 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){