Fix parsing of bunker URI from standards-compliant runtimes

deno-prep
Alex Gleason 2024-10-21 10:51:38 -05:00
rodzic 38be26a9e9
commit 67c1e7eba5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -18,7 +18,8 @@ export const NostrBunkerLogin: React.FC = () => {
const url = new URL(uri);
const params = new URLSearchParams(url.search);
const pubkey = url.pathname.slice(2);
// https://github.com/denoland/deno/issues/26440
const pubkey = url.hostname || url.pathname.slice(2);
const secret = params.get('secret');
const relays = params.getAll('relay');