remove soop 1
This commit is contained in:
parent
e7967486a3
commit
69edb7c7e3
3 changed files with 36 additions and 35 deletions
|
|
@ -37,6 +37,8 @@ Storage.prototype._decryptObj = function(base64) {
|
|||
Storage.prototype.load = function(walletId, callback) {
|
||||
var self = this;
|
||||
fs.readFile(walletId, function(err, base64) {
|
||||
if (typeof base64 !== 'string')
|
||||
base64 = base64.toString();
|
||||
var data = self._decryptObj(base64);
|
||||
|
||||
if (err) return callback(err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue