Skip to content

Commit

Permalink
fix: add favicon for base domain
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 1, 2024
1 parent d2fee27 commit 6cc86a4
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,22 @@ if (!domain.value) {
title: 'page-speed.dev',
description: 'See and share PageSpeed Insights results simply and easily.',
})
useHead({
link: [
{
rel: 'icon',
type: 'image/png',
sizes: '32x32',
href: '/favicon-32x32.png'
},
{
rel: 'icon',
type: 'image/png',
sizes: '16x16',
href: '/favicon-16x16.png'
},
]
})
} else if (results.value) {
useServerSeoMeta({
title: 'page-speed.dev - ' + domain.value,
Expand All @@ -196,7 +212,7 @@ function navigateToNewDomain () {
if (!newDomain.value) { return }
const host = parseURL(newDomain.value).host || newDomain.value
editing.value = false
editing.value = false
return navigateTo('/' + withoutLeadingSlash(host).toLowerCase().replace(/(\/|\?).*$/, '').trim())
}
Expand Down

0 comments on commit 6cc86a4

Please sign in to comment.