feat: Update URL parameters to include the searched address on error and specify ECDSA private key acceptance.

This commit is contained in:
void-57 2025-12-10 17:55:43 +05:30
parent 7a39b3bd58
commit 9a14574245

View File

@ -212,7 +212,7 @@
<i class="fas fa-times"></i>
</button>
</div>
<div class="form-text">Only private keys accepted</div>
<div class="form-text">Only ECDSA private keys accepted</div>
</div>
<button id="recoverBtn" class="btn btn-primary btn-block" onclick="recoverWallet()">
@ -1186,6 +1186,13 @@
console.error('Error:', 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
document.getElementById('display-address').textContent = address;