Detect nip29 properly before choosing smart path, more robust auth error checking

This commit is contained in:
Jon Staab
2025-11-04 16:14:32 -08:00
parent 6429f82829
commit 501ce8067d
12 changed files with 56 additions and 45 deletions
+8 -2
View File
@@ -4,9 +4,15 @@
import Dialog from "@lib/components/Dialog.svelte"
import {modal, clearModals} from "@app/util/modal"
const closeModals = () => {
if ($modal && !$modal.options.noEscape) {
clearModals()
}
}
const onKeyDown = (e: any) => {
if (e.code === "Escape" && e.target === document.body) {
clearModals()
closeModals()
}
}
@@ -27,7 +33,7 @@
instance = mount(wrapper as any, {
target: element,
props: {
onClose: clearModals,
onClose: closeModals,
children: createRawSnippet(() => ({
render: () => "<div></div>",
setup: (target: Element) => {