forked from MapComplete/MapComplete
Android: Small fixes to landing page and passthrough
This commit is contained in:
parent
baa7379fbf
commit
77f4bc84aa
12 changed files with 55 additions and 31 deletions
|
@ -12,6 +12,9 @@ const tokenSrc = new UIEventSource("")
|
|||
new VariableUiElement(tokenSrc).AttachTo("token")
|
||||
new OsmConnection().finishLogin(async (_, token: string) => {
|
||||
console.log("Login finished, redirecting to passthrough; token is "+token)
|
||||
await Utils.waitFor(10)
|
||||
window.location.href = "https://app.mapcomplete.org/passthrough.html?oauth_token="+token
|
||||
tokenSrc.set(token)
|
||||
await Utils.waitFor(500)
|
||||
window.location.href = "orgmapcomplete://passthrough.html?oauth_token="+token
|
||||
await Utils.waitFor(500)
|
||||
window.close()
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue