We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f850baa commit 341bae5Copy full SHA for 341bae5
pkgs/frontend/app/components/common/QrAddressReader.tsx
@@ -86,6 +86,13 @@ export const QrAddressReader: FC<QrAddressReaderProps> = ({
86
let scannedText = result.getText();
87
if (scannedText.includes(":")) {
88
scannedText = scannedText.split(":")[1];
89
+ } else if (scannedText.includes("http")) {
90
+ // get recipient query param from url
91
+ const url = new URL(scannedText);
92
+ const recipientParam = url.searchParams.get("recipient");
93
+ if (recipientParam) {
94
+ scannedText = recipientParam;
95
+ }
96
}
97
98
// Validate if it's a valid Ethereum address
0 commit comments