Skip to content

Commit f6b9cad

Browse files
leonacostaokclaude
andcommitted
Show alert popup when syncing without valid pubkey
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2db740a commit f6b9cad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

popup/popup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,14 +652,14 @@ document.getElementById('sync').addEventListener('click', async () => {
652652
const depth = parseInt(document.getElementById('syncDepth').value, 10);
653653

654654
if (!pubkeyInput) {
655-
setStatus('Set your pubkey first', 'error');
655+
alert('Please set your pubkey first (hex or npub format)');
656656
return;
657657
}
658658

659659
// Validate and normalize pubkey (accepts hex or npub)
660660
const normalizedPubkey = normalizeToHex(pubkeyInput);
661661
if (!normalizedPubkey) {
662-
setStatus('Invalid pubkey format (use hex or npub)', 'error');
662+
alert('Invalid pubkey format. Please use hex (64 characters) or npub format.');
663663
return;
664664
}
665665

0 commit comments

Comments
 (0)