misc: gpt did a goofy

This commit is contained in:
Xyphyn committed 2023-07-06 17:06:11 -07:00
1 parent 3c239ce21c
commit 66eca58d01
3 files changed
+10 -12

No files matched your search

+7 -5
View File
@@ -141,11 +141,13 @@
<span class="mx-4 text-xs opacity-80 text-left my-2">Post Actions</span>
<MenuButton
on:click={() => {
navigator.clipboard.writeText(
`${$page.url.origin}/post/${
$authData?.instance ?? DEFAULT_INSTANCE_URL
}/${postRes.post.id}`
)
if (typeof navigator != 'undefined') {
navigator.clipboard.writeText(
`${$page.url.origin}/post/${
$authData?.instance ?? DEFAULT_INSTANCE_URL
}/${postRes.post.id}`
)
}
}}
>
<Icon src={Square2Stack} width={16} mini />