diff --git a/www/common/common-constants.js b/www/common/common-constants.js index 494267ed3..ce96bb66b 100644 --- a/www/common/common-constants.js +++ b/www/common/common-constants.js @@ -3,6 +3,7 @@ define(function () { // localStorage userHashKey: 'User_hash', userNameKey: 'User_name', + blockHashKey: 'Block_hash', fileHashKey: 'FS_hash', // sessionStorage newPadPathKey: "newPadPath", diff --git a/www/common/outer/local-store.js b/www/common/outer/local-store.js index a40a3e6f5..28f94b62b 100644 --- a/www/common/outer/local-store.js +++ b/www/common/outer/local-store.js @@ -58,6 +58,14 @@ define([ localStorage[Constants.userHashKey] = sHash; }; + LocalStore.getBlockHash = function () { + return localStorage[Constants.blockHashKey]; + }; + + LocalStore.setBlockHash = function (hash) { + LocalStorage[Constants.blockHashKey] = hash; + }; + LocalStore.getAccountName = function () { return localStorage[Constants.userNameKey]; }; @@ -96,6 +104,7 @@ define([ [ Constants.userNameKey, Constants.userHashKey, + Constants.blockHashKey, 'loginToken', 'plan', ].forEach(function (k) {