diff --git a/src/Pages/Login.tsx b/src/Pages/Login.tsx index ba62ac69a..8169591f9 100644 --- a/src/Pages/Login.tsx +++ b/src/Pages/Login.tsx @@ -72,12 +72,15 @@ export default function LoginPage() { async function doNip07Login() { let pubKey = await window.nostr.getPublicKey(); - let relays = await window.nostr.getRelays(); dispatch(setPublicKey(pubKey)); - dispatch(setRelays({ - relays: relays, - createdAt: 1 - })); + + if ("getRelays" in window.nostr) { + let relays = await window.nostr.getRelays(); + dispatch(setRelays({ + relays: relays, + createdAt: 1 + })); + } } function altLogins() {