Fix: chromium browsers don't handle spaces in tel:-links well

This commit is contained in:
Pieter Vander Vennet 2024-08-28 12:02:04 +02:00
parent b79835074f
commit 4168ef01e3
5 changed files with 315 additions and 279 deletions

View file

@ -1,6 +1,7 @@
<script lang="ts">
import { ImmutableStore, Store } from "../../Logic/UIEventSource"
import Icon from "../Map/Icon.svelte"
import { Utils } from "../../Utils"
export let text: Store<string>
export let href: Store<string>
@ -13,7 +14,7 @@
</script>
<a
href={$href}
href={Utils.prepareHref($href)}
aria-label={$ariaLabel}
title={$ariaLabel}
target={$newTab ? "_blank" : undefined}