Browse Source

bugfix: new receive add button in wallet widget was generating multiple address in 1 click

whenever a new coin added the script was executing the
Dashboard.init(), to refresh, and along with it it was also executing
functions multiple time, causing same functions to execute multiple
times, as the init was running as much time the Dashboard.init() was
running. this update should fix the issue.
master
Satinder Grewal 8 years ago
parent
commit
ca2ff5b458
  1. 3
      assets/scripts/iguana_api.js

3
assets/scripts/iguana_api.js

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

Loading…
Cancel
Save