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:
commit
e5ec33ae88
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue