- LND wallet: request correct address type so receive-address generation no longer 400s - AIUI/app session: on-screen pointer can click + type into app content (incl. app store search); "open in new tab" opens the phone browser; mobile credential modal centered instead of full-height (remote-relay.ts, AppSession.vue, AppSessionFrame.vue, AppIconGrid.vue, openExternal.ts, WebViewScreen.kt) + remote-relay tests - health_monitor: electrs auto-recovers from a corrupt index and shows a percent/block-height progress screen while reindexing (useElectrsSync.ts) - update.rs: drop retired tx1138 secondary mirror (one-time migration); longer download timeout for slow connections - CHANGELOG: v1.7.90-alpha notes - tests/release/run.sh: harness tweaks Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
26 lines
967 B
TypeScript
26 lines
967 B
TypeScript
/**
|
|
* Open a URL in the device's real browser.
|
|
*
|
|
* In a normal mobile/desktop browser this is just `window.open(_blank)`. Inside
|
|
* the Android companion app the page runs in a WebView where `window.open` is
|
|
* unreliable (noopener/noreferrer can suppress onCreateWindow), so the native
|
|
* shell injects a `window.ArchipelagoNative.openExternal(url)` bridge that hands
|
|
* the URL to an ACTION_VIEW intent. We prefer the bridge when present and fall
|
|
* back to `window.open` otherwise — so the working mobile-browser path is
|
|
* untouched.
|
|
*/
|
|
interface ArchipelagoNativeBridge {
|
|
openExternal?: (url: string) => void
|
|
}
|
|
|
|
export function openExternalUrl(url: string): void {
|
|
if (!url) return
|
|
const native = (window as unknown as { ArchipelagoNative?: ArchipelagoNativeBridge })
|
|
.ArchipelagoNative
|
|
if (native && typeof native.openExternal === 'function') {
|
|
native.openExternal(url)
|
|
return
|
|
}
|
|
window.open(url, '_blank', 'noopener,noreferrer')
|
|
}
|