mirror of
https://github.com/tompro/sattle.git
synced 2026-08-27 07:15:59 +00:00
feat: deep link routing for lightning and lnurl schemes plus association files
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { defineBoot } from '#q-app';
|
||||
|
||||
import { initDeepLinks } from '@/capabilities/deepLinks';
|
||||
|
||||
// Deep-link bootstrap (capabilities/deepLinks.ts): native appUrlOpen /
|
||||
// cold-start launch URLs and the PWA protocol-handler ?uri= landing all
|
||||
// funnel into pendingExternalInput; the home screen consumes it and opens
|
||||
// the matching receive/pay dialog. Every accepted link routes home first -
|
||||
// the dialogs live there.
|
||||
export default defineBoot(({ router }) => {
|
||||
void initDeepLinks(() => {
|
||||
void router.push('/').catch(() => {
|
||||
// already on '/' - a redundant navigation is not an error
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user