fix(frontend): copy-to-clipnoard url with protocol (#1027)

This commit is contained in:
Jakub Kołodziejczak
2022-12-18 15:38:12 +01:00
committed by GitHub
parent 42d4711503
commit f77fe7b6b3

View File

@@ -415,13 +415,14 @@
<ul>
{#each Object.keys(webhooks[key]) as type}
{@const url = webhooks[key][type]}
{@const href = $page.url.protocol + '//' + url}
<li class="flex justify-between items-center mt-2">
<a
on:click={(e) => {
e.preventDefault()
copyToClipboard(url)
copyToClipboard(href)
}}
href={$page.url.protocol + '//' + url}
href={href}
class="whitespace-nowrap text-ellipsis overflow-hidden mr-1"
>
{url}