Add nip 01 login flow to mobile

This commit is contained in:
Jon Staab
2025-02-14 10:53:36 -08:00
parent 27d9d4fff1
commit 69d0e11ba4
7 changed files with 305 additions and 64 deletions
+13
View File
@@ -76,3 +76,16 @@ export const createScroller = ({
}
export const isMobile = "ontouchstart" in document.documentElement
export const downloadText = (filename: string, text: string) => {
const blob = new Blob([text], {type: "text/plain"})
const url = URL.createObjectURL(blob)
const a = document.createElement("a")
a.href = url
a.download = filename
document.body.appendChild(a)
a.click()
document.body.removeChild(a)
URL.revokeObjectURL(url)
}