Unify legacy overlay signing with the queued iframe consent bridge

This commit is contained in:
archipelago
2026-10-06 11:43:33 -04:00
parent 367c32bb08
commit 08c93f4aad
5 changed files with 183 additions and 203 deletions
@@ -229,6 +229,7 @@ interface PaymentRequest {
const store = useAppLauncherStore()
const closeBtnRef = ref<HTMLButtonElement | null>(null)
const iframeRef = ref<HTMLIFrameElement | null>(null)
watch(iframeRef, frame => store.setNostrFrame(frame?.contentWindow || null), { flush: 'post' })
const iframeRefreshKey = ref(0)
const isRefreshing = ref(false)
const iframeLoading = ref(true)
@@ -682,6 +683,7 @@ onMounted(() => {
})
onBeforeUnmount(() => {
store.setNostrFrame(null)
clearTimers()
stopProgress()
window.removeEventListener('keydown', onKeyDown, true)