From 9ce5213fb26be2f45860afe46d0f3b5a69dd1a53 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 22 Jan 2025 18:20:28 +0100 Subject: [PATCH] Android: app landing page: show error message --- app/land.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/land.ts b/app/land.ts index 0136a09797..fa2ae88af8 100644 --- a/app/land.ts +++ b/app/land.ts @@ -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() })