diff --git a/docs/index.html b/docs/index.html index 64470c5..fbb569d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -91,6 +91,7 @@

Don't have FLO credentials?

Generate FLO credentials + clear local data
diff --git a/docs/scripts/exchangeAPI.js b/docs/scripts/exchangeAPI.js index c4905e2..fa32a8b 100644 --- a/docs/scripts/exchangeAPI.js +++ b/docs/scripts/exchangeAPI.js @@ -619,4 +619,12 @@ function refreshDataFromBlockchain() { resolve(nodes); }).catch(error => reject(error)); }) +} + +function clearAllLocalData() { + localStorage.removeItem('exchange-nodes'); + localStorage.removeItem('exchange-lastTx'); + localStorage.removeItem('exchange-proxy_secret'); + localStorage.removeItem('exchange-user_ID'); + location.reload(); } \ No newline at end of file