mirror of
git://jb55.com/damus
synced 2024-09-19 19:46:51 +00:00
nwc: make sure to support nostr+walletconnect scheme
not sure why we have 2 schemes
This commit is contained in:
parent
0b9a274e67
commit
1b161fefd0
@ -36,7 +36,8 @@ struct WalletConnectURL: Equatable {
|
||||
}
|
||||
|
||||
init?(str: String) {
|
||||
guard let url = URL(string: str), url.scheme == "nostrwalletconnect",
|
||||
guard let url = URL(string: str),
|
||||
url.scheme == "nostrwalletconnect" || url.scheme == "nostr+walletconnect",
|
||||
let pk = url.host, pk.utf8.count == 64,
|
||||
let components = URLComponents(url: url, resolvingAgainstBaseURL: true),
|
||||
let items = components.queryItems,
|
||||
|
Loading…
Reference in New Issue
Block a user