Skip to content

Commit

Permalink
fix: add fallback for link
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 1, 2024
1 parent 23d77cd commit 6b6c039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function navigateToNewDomain () {
return navigateTo('/' + withoutLeadingSlash(host).toLowerCase().replace(/(\/|\?).*$/, '').trim())
}
const shareLink = computed(() => `https://twitter.com/intent/tweet?text=${encodeURIComponent(`Check out the Page Speed results for ${domain.value.replace(/\./g, '.\x00')}` + `\n\nhttps://page-speed.dev/${domain.value}`)}`)
const shareLink = computed(() => domain.value ? `https://twitter.com/intent/tweet?text=${encodeURIComponent(`Check out the Page Speed results for ${domain.value.replace(/\./g, '.\x00')}` + `\n\nhttps://page-speed.dev/${domain.value}`)}` : 'See and share PageSpeed Insights results simply and easily.')
async function nativeShare () {
try {
Expand Down

0 comments on commit 6b6c039

Please sign in to comment.