aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/send
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/send')
-rw-r--r--src/routes/(app)/send/[...text]/+page.server.js4
-rw-r--r--src/routes/(app)/send/invoice/[id]/+page.svelte2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/routes/(app)/send/[...text]/+page.server.js b/src/routes/(app)/send/[...text]/+page.server.js
index a6b0c54d..ef05be16 100644
--- a/src/routes/(app)/send/[...text]/+page.server.js
+++ b/src/routes/(app)/send/[...text]/+page.server.js
@@ -33,11 +33,11 @@ let parse = async (t, host) => {
if (t.includes("/fund")) redirect(307, t.substring(t.indexOf("/fund")));
+ // lightning
+ if (t.toLowerCase().startsWith("lightning:")) t = t.toLowerCase().replace("lightning:", "");
if (t.toLowerCase().startsWith("lnurl")) redirect(307, `/ln/${t}`);
if (t.includes(":")) t = t.split(":")[1];
- // lightning
- if (t.toLowerCase().startsWith("lightning:")) t = t.toLowerCase().replace("lightning:", "");
if (t.toLowerCase().startsWith("ln")) {
try {
({ id } = await get(`/invoice/${t}`));
diff --git a/src/routes/(app)/send/invoice/[id]/+page.svelte b/src/routes/(app)/send/invoice/[id]/+page.svelte
index c2163a81..e857f717 100644
--- a/src/routes/(app)/send/invoice/[id]/+page.svelte
+++ b/src/routes/(app)/send/invoice/[id]/+page.svelte
@@ -57,7 +57,7 @@
};
// onMount(async () => {
- // if (browser && window.NDEFReader) {
+ // if (browser && window.NDEFReader && user.nfc) {
// try {
// let ndef = new NDEFReader();
// await ndef.scan();