Skip to content

Commit

Permalink
Decrypt stored items when retrieving them (#10)
Browse files Browse the repository at this point in the history
Looks like there was a regression recently that caused this to stop decrypting stored values when retrieving them. This fixes that.
  • Loading branch information
marcaddeo authored and bukinoshita committed Jun 13, 2019
1 parent be6bf50 commit a74c474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SaveLocal {
async get(item) {
const hasItem = await storage.getItem(item)

return hasItem && hasItem
return hasItem && decrypt(hasItem, 20)
}

set(item) {
Expand Down

0 comments on commit a74c474

Please sign in to comment.