diff --git a/manifest.ts b/manifest.ts index f2534cea..40dc8276 100644 --- a/manifest.ts +++ b/manifest.ts @@ -517,6 +517,12 @@ const manifest: Partial = { } ] } + ], + protocol_handlers: [ + { + protocol: "bitcoin", + url: "/send?invoice=%s" + } ] }; diff --git a/src/routes/Send.tsx b/src/routes/Send.tsx index 6e856f8d..428f2d00 100644 --- a/src/routes/Send.tsx +++ b/src/routes/Send.tsx @@ -260,7 +260,7 @@ export function Send() { }, (result) => { actions.setScanResult(result); - navigate("/send", { state: { previous: "/search" } }); + handleDestination(state.scan_result); } ); }