From f32fcefc9ed319db5e121a8c2324c36a962aefbd Mon Sep 17 00:00:00 2001 From: Milan Lesichkov Date: Tue, 20 Aug 2019 08:29:05 +0100 Subject: [PATCH] Update initialize.js --- initialize.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/initialize.js b/initialize.js index afe90fa..625f8cd 100644 --- a/initialize.js +++ b/initialize.js @@ -187,7 +187,7 @@ function Registry(namespace) { } var value = jsonDecode(value); - return this.decode(value); + return this.decrypt(value); } else { return null; } @@ -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();