From 28f2cc4fbe8c6b4b90563392fd7a6a52898c276e Mon Sep 17 00:00:00 2001 From: Satinder Grewal Date: Thu, 16 Feb 2017 02:01:50 +1300 Subject: [PATCH] clear login session function implemented in case iguana crashes --- assets/scripts/dashboard.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/assets/scripts/dashboard.js b/assets/scripts/dashboard.js index 2180610..acd1d94 100644 --- a/assets/scripts/dashboard.js +++ b/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" ) {