diff --git a/index.html b/index.html index 0d4ed19..ccb40b9 100644 --- a/index.html +++ b/index.html @@ -1328,7 +1328,7 @@ ${contactInitial} changeContactName(e.target.value.trim())} ?disabled=${disableContactName}> -

${lastInteraction}

+

${lastInteraction}

${addAsContact} @@ -2346,7 +2346,10 @@ location.hash = floGlobals.isPrivKeySecured ? '#/sign_in' : `#/landing`; } getRef('sign_in_button').onclick = () => { - resolve(getRef('private_key_field').value.trim()); + let privateKey = getRef('private_key_field').value.trim(); + if (/^[0-9a-fA-F]{64}$/.test(privateKey)) //if hex private key might be ethereum + privateKey = coinjs.privkey2wif(privateKey); + resolve(privateKey); getRef('private_key_field').value = ''; routeTo('loading'); };