settings: show wallet network on sidebar

This commit is contained in:
Manuel Araoz 2014-09-10 11:47:41 -07:00
commit 4cfe87490f
4 changed files with 5 additions and 7 deletions

View file

@ -80,7 +80,6 @@ WalletFactory.prototype._checkRead = function(walletId) {
* @return {string} network name
*/
WalletFactory.prototype.obtainNetworkName = function(obj) {
console.log(JSON.stringify(obj));
return obj.networkName ||
obj.opts.networkName ||
obj.publicKeyRing.networkName ||
@ -107,8 +106,6 @@ WalletFactory.prototype.fromObj = function(obj, skipFields) {
throw new Error('unknown field:' + k);
});
alert(networkName);
var w = Wallet.fromObj(obj, this.storage, this.networks[networkName], this.blockchains[networkName]);
if (!w) return false;
this._checkVersion(w.version);