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 keyInput = signInBox.getElementsByTagName('input')[0];
|
||||||
let key = keyInput.value;
|
let key = keyInput.value;
|
||||||
keyInput.value = '';
|
keyInput.value = '';
|
||||||
buttons[0].onclick = null;
|
if(floCrypto.getPubKeyHex(keyInput)){
|
||||||
buttons[1].onclick = null;
|
buttons[0].onclick = null;
|
||||||
signInBox.classList.add('hide')
|
buttons[1].onclick = null;
|
||||||
resolve(key)
|
signInBox.classList.add('hide')
|
||||||
|
resolve(key)
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
showMessage('Incorrect Private Key! Please Enter correct key again', 'error')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
buttons[1].onclick = () => {
|
buttons[1].onclick = () => {
|
||||||
signInBox.getElementsByTagName('input')[0].value = '';
|
signInBox.getElementsByTagName('input')[0].value = '';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user