forked from MapComplete/MapComplete
Android: app landing page: show error message
This commit is contained in:
parent
2bea57f6a4
commit
9ce5213fb2
1 changed files with 4 additions and 3 deletions
|
@ -15,9 +15,10 @@ new VariableUiElement(tokenSrc).AttachTo("token")
|
||||||
new OsmConnection().finishLogin(async (_, token: string) => {
|
new OsmConnection().finishLogin(async (_, token: string) => {
|
||||||
console.log("Login finished, redirecting to passthrough; token is " + token)
|
console.log("Login finished, redirecting to passthrough; token is " + token)
|
||||||
tokenSrc.set(token)
|
tokenSrc.set(token)
|
||||||
|
if(!token){
|
||||||
|
tokenSrc.set("ERROR: no token retrieved!")
|
||||||
|
return
|
||||||
|
}
|
||||||
await Utils.waitFor(500)
|
await Utils.waitFor(500)
|
||||||
window.location.href = "orgmapcomplete://passthrough.html?oauth_token=" + token
|
window.location.href = "orgmapcomplete://passthrough.html?oauth_token=" + token
|
||||||
tokenSrc.set("Closing...")
|
|
||||||
await Utils.waitFor(50)
|
|
||||||
window.close()
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue