Browse Source

test: fix addcoin issue

master
Satinder Grewal 8 years ago
parent
commit
2f9623cde3
  1. 6
      assets/scripts/iguana_api.js
  2. 2
      assets/scripts/login.js

6
assets/scripts/iguana_api.js

@ -259,9 +259,9 @@ function Iguana_addcoin(addcoin_data) {
if (addcoinData.result === 'coin added') {
console.log('coin added');
toastr.success(logincoinfullname+" started in "+ logincoinmodeinfo +" Mode", "Coin Notification");
if ( typeof addcoin_data.reload == 'undefined' || addcoin_data.reload != false ) {
location.reload();
}
//if ( typeof addcoin_data.reload == 'undefined' || addcoin_data.reload != false ) {
$(document).ready(function() { Dashboard.init(); });
//}
} else if (addcoinData.result === 'coin already there') {
console.log('coin already there');
toastr.info("Looks like "+ logincoinfullname +" already running.", "Coin Notification");

2
assets/scripts/login.js

@ -507,7 +507,7 @@ var Login = function() {
$('#logint-another-wallet').hide();
} else {
var CheckLoginData = JSON.parse(sessionStorage.getItem('IguanaActiveAccount'));
if ( JSON.parse(CheckLoginData).rmd160 != Iguana_activehandle_output.rmd160 ) {
if ( JSON.parse(CheckLoginData).pubkey != Iguana_activehandle_output.pubkey ) {
//console.log("Login: sessionStorage data and activehandle data doesn't match");
//console.log('Iguana_activehandle_output: '+Iguana_activehandle_output.rmd160);
//console.log('CheckLoginData: ' + JSON.parse(CheckLoginData).rmd160);

Loading…
Cancel
Save