Skip to content

Commit

Permalink
urlパラメータやめる
Browse files Browse the repository at this point in the history
  • Loading branch information
ef81sp committed Jan 4, 2025
1 parent 0795f3a commit 89daf66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions src/components/Nanimachi100Result.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ const handleShare = async () => {
</Card>
<ShareDialog
ref="shareDialog"
:text
:url
:shareText
/>
<Button
Expand Down
4 changes: 1 addition & 3 deletions src/components/ShareDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { ref, computed, useId } from 'vue'
import { useClipboard } from '@vueuse/core'
const props = defineProps<{
text: string
url: string
shareText: string
}>()
Expand Down Expand Up @@ -33,7 +31,7 @@ const isSP = navigator.userAgent.match(/(iPhone|iPad|iPod|Android)/)
const shareOnXUrl = computed(
() =>
`https://x.com/intent/tweet?text=${encodeURIComponent(props.text)}&url=${encodeURIComponent(props.url)}`,
`https://x.com/intent/tweet?text=${encodeURIComponent(props.shareText)}`,
)
const shareOnBlueskyUrl = computed(
() =>
Expand Down

0 comments on commit 89daf66

Please sign in to comment.