feat: Update URL parameters to include the searched address on error and specify ECDSA private key acceptance.
This commit is contained in:
parent
7a39b3bd58
commit
9a14574245
@ -212,7 +212,7 @@
|
|||||||
<i class="fas fa-times"></i>
|
<i class="fas fa-times"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-text">Only private keys accepted</div>
|
<div class="form-text">Only ECDSA private keys accepted</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button id="recoverBtn" class="btn btn-primary btn-block" onclick="recoverWallet()">
|
<button id="recoverBtn" class="btn btn-primary btn-block" onclick="recoverWallet()">
|
||||||
@ -1186,6 +1186,13 @@
|
|||||||
console.error('Error:', error);
|
console.error('Error:', error);
|
||||||
showNotification('❌ Error: ' + error.message, 'error');
|
showNotification('❌ Error: ' + error.message, 'error');
|
||||||
|
|
||||||
|
// Update URL with address parameter
|
||||||
|
const url = new URL(window.location);
|
||||||
|
url.searchParams.set('address', address);
|
||||||
|
url.searchParams.delete('hash');
|
||||||
|
url.searchParams.delete('txid');
|
||||||
|
window.history.pushState({}, '', url);
|
||||||
|
|
||||||
// Display the searched address
|
// Display the searched address
|
||||||
document.getElementById('display-address').textContent = address;
|
document.getElementById('display-address').textContent = address;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user