From 489996c1b8c47d5f69959c046f2fd1c6062aa243 Mon Sep 17 00:00:00 2001 From: sairajzero Date: Wed, 6 May 2020 19:56:31 +0530 Subject: [PATCH] Improve clearCredentials Clearing the private key, public key and floID from memory on clearCredentials --- standard_Operations.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standard_Operations.html b/standard_Operations.html index 3754c60..572aded 100644 --- a/standard_Operations.html +++ b/standard_Operations.html @@ -8751,7 +8751,6 @@ Bitcoin.Util = { initIndexedDB: function () { return new Promise((resolve, reject) => { - var storageList = floGlobals.storageList; var obj = { //general lastTx: {}, @@ -9076,6 +9075,7 @@ Bitcoin.Util = { return new Promise((resolve, reject) => { compactIDB.clearData('credentials').then(result => { localStorage.removeItem(`${floGlobals.application}#privKey`) + myPrivKey = myPubKey = myFloID = undefined; resolve("privKey credentials deleted!") }).catch(error => reject(error)) })