Merge branch 'bunker' into 'main'

Fix parsing of bunker URI from standards-compliant runtimes

See merge request soapbox-pub/soapbox!3173
This commit is contained in:
Alex Gleason 2024-10-21 15:56:45 +00:00
commit e5ec33ae88
1 changed files with 2 additions and 1 deletions

View File

@ -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');