remove soop 1

This commit is contained in:
Manuel Araoz 2014-08-14 14:29:59 -04:00
commit 69edb7c7e3
3 changed files with 36 additions and 35 deletions

View file

@ -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);