Android: get polyfills for geolocation working, some steps for logging in

This commit is contained in:
Pieter Vander Vennet 2024-12-12 00:46:24 +01:00
parent 76e9381650
commit 14e5f1efb3
5 changed files with 52 additions and 28 deletions

View file

@ -52,6 +52,7 @@
import PanoramaxLink from "./PanoramaxLink.svelte"
import { UIEventSource } from "../../Logic/UIEventSource"
import MagnifyingGlassCircle from "@babeard/svelte-heroicons/mini/MagnifyingGlassCircle"
import { AndroidPolyfill } from "../../Logic/Web/AndroidPolyfill"
export let state: ThemeViewState
let userdetails = state.osmConnection.userDetails
@ -78,6 +79,7 @@
})
}
})
let isAndroid = AndroidPolyfill.inAndroid
</script>
<div
@ -255,7 +257,8 @@
</If>
<a class="sidebar-button flex" href="geo:{$location.lat},{$location.lon}">
<ShareIcon /><Tr t={t.openHereDifferentApp} />
<ShareIcon />
<Tr t={t.openHereDifferentApp} />
</a>
</SidebarUnit>
@ -343,6 +346,9 @@
<div class="subtle self-end">
{Constants.vNumber}
{#if $isAndroid}
Android
{/if}
</div>
</SidebarUnit>
</div>