Skip to content

Commit

Permalink
Update initialize.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lesichkovm authored Aug 20, 2019
1 parent 380b6a3 commit f32fcef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function Registry(namespace) {
}

var value = jsonDecode(value);
return this.decode(value);
return this.decrypt(value);
} else {
return null;
}
Expand All @@ -210,7 +210,7 @@ function Registry(namespace) {
if (value === null) {
localStorage.removeItem(key);
} else {
var encValue = this.encode(value);
var encValue = this.encrypt(value);
localStorage.setItem(key, jsonEncode(encValue));
var expiresTime = ((new Date()).getTime() + expires);
var expires = new Date();
Expand Down

0 comments on commit f32fcef

Please sign in to comment.