Browse Source

clear login session function implemented in case iguana crashes

master
Satinder Grewal 8 years ago
parent
commit
28f2cc4fbe
  1. 15
      assets/scripts/dashboard.js

15
assets/scripts/dashboard.js

@ -578,14 +578,17 @@ var Dashboard = function() {
}
}, 1000);
/*var RefreshEdexWalletList = setInterval(function() {
if ( sessionStorage.getItem('IguanaActiveAccount') === null || sessionStorage.getItem('DashboardActions') === null || sessionStorage.getItem('DashboardActions') === "stop" ) {
clearInterval(RefreshEdexWalletList);
var CheckIfIguanaRunning = setInterval(function() {
if ( sessionStorage.getItem('IguanaActiveAccount') === null ) {
//clearInterval(CheckIfIguanaRunning);
//console.log('=> No wallet logged in, or Dashboard not ative. No need to Run History.');
} else if ( sessionStorage.getItem('DashboardActions') === null || sessionStorage.getItem('DashboardActions') === "start") {
refreshEDEXCoinWalletList()
} else {
Iguana_activehandle().then(function(result){
//console.log(result)
console.log("Iguana is running");
})
}
}, 30000);*/
}, 1000);
var RefreshEdexWalletDashboard = setInterval(function() {
if ( sessionStorage.getItem('IguanaActiveAccount') === null || sessionStorage.getItem('DashboardActions') === null || sessionStorage.getItem('DashboardActions') === "stop" ) {

Loading…
Cancel
Save