diff options
| author | Adam Soltys <[email protected]> | 2024-03-19 23:18:24 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-03-19 23:18:24 -0700 |
| commit | c836074c1b83d0a0d2a2904f1942ce6bd918a5a9 (patch) | |
| tree | ad3f80a154a24274e51118a21903d0754a861655 | |
| parent | 59e2f69f0b0ab31e18bdc36e1d605ba2c82bed1d (diff) | |
| download | coinos-ui-c836074c1b83d0a0d2a2904f1942ce6bd918a5a9.tar.gz coinos-ui-c836074c1b83d0a0d2a2904f1942ce6bd918a5a9.zip | |
strip lightning prefix
| -rwxr-xr-x | bun.lockb | bin | 120802 -> 120802 bytes | |||
| -rw-r--r-- | src/routes/(app)/send/[...text]/+page.server.js | 1 |
2 files changed, 1 insertions, 0 deletions
| Binary files differ diff --git a/src/routes/(app)/send/[...text]/+page.server.js b/src/routes/(app)/send/[...text]/+page.server.js index 479bca6b..061eb35f 100644 --- a/src/routes/(app)/send/[...text]/+page.server.js +++ b/src/routes/(app)/send/[...text]/+page.server.js @@ -19,6 +19,7 @@ let parse = async (t, host) => { options: { amount }, } = bip21.decode(t)); + if (t.startsWith("lightning:")) t = t.replace("lightning:", ""); if (t.endsWith(`@${PUBLIC_DOMAIN}`)) t = t.split("@")[0]; if (t.includes("@") && t.includes(".")) { try { |
