diff --git a/src/index.ts b/src/index.ts index 3599e31..7c55712 100644 --- a/src/index.ts +++ b/src/index.ts @@ -67,7 +67,8 @@ const LoadLandingPage = () => { o.innerHTML = aboutcontent; const a = document.getElementById('loadextension'); if (a) { - a.onclick = async () => { + a.onclick = async (ev) => { + ev.preventDefault() if (window.nostr) { const pubkey = await window.nostr.getPublicKey(); localStorageSetItem('pubkey', pubkey);