Android: app landing page: show error message

This commit is contained in:
Pieter Vander Vennet 2025-01-22 18:20:28 +01:00
parent 2bea57f6a4
commit 9ce5213fb2

View file

@ -15,9 +15,10 @@ new VariableUiElement(tokenSrc).AttachTo("token")
new OsmConnection().finishLogin(async (_, token: string) => {
console.log("Login finished, redirecting to passthrough; token is " + token)
tokenSrc.set(token)
if(!token){
tokenSrc.set("ERROR: no token retrieved!")
return
}
await Utils.waitFor(500)
window.location.href = "orgmapcomplete://passthrough.html?oauth_token=" + token
tokenSrc.set("Closing...")
await Utils.waitFor(50)
window.close()
})