added wrong private key error notification
This commit is contained in:
parent
5874cc12c1
commit
f6fb67d1b8
13
index.html
13
index.html
@ -781,10 +781,15 @@
|
||||
let keyInput = signInBox.getElementsByTagName('input')[0];
|
||||
let key = keyInput.value;
|
||||
keyInput.value = '';
|
||||
buttons[0].onclick = null;
|
||||
buttons[1].onclick = null;
|
||||
signInBox.classList.add('hide')
|
||||
resolve(key)
|
||||
if(floCrypto.getPubKeyHex(keyInput)){
|
||||
buttons[0].onclick = null;
|
||||
buttons[1].onclick = null;
|
||||
signInBox.classList.add('hide')
|
||||
resolve(key)
|
||||
}
|
||||
else{
|
||||
showMessage('Incorrect Private Key! Please Enter correct key again', 'error')
|
||||
}
|
||||
}
|
||||
buttons[1].onclick = () => {
|
||||
signInBox.getElementsByTagName('input')[0].value = '';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user