Skip to content

Commit d9addb7

Browse files
authored
fix(meta): add missing hid to icon tags (#428)
1 parent 245aadc commit d9addb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/meta.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ export function meta (nuxt, pwa: PWAContext, moduleContainer) {
8989

9090
// Shortcut icon
9191
if (options.favicon) {
92-
head.link.push({ rel: 'shortcut icon', href: iconSmall.src })
93-
head.link.push({ rel: 'apple-touch-icon', href: iconBig.src, sizes: iconBig.sizes })
92+
head.link.push({ hid: 'shortcut-icon', rel: 'shortcut icon', href: iconSmall.src })
93+
head.link.push({ hid: 'apple-touch-icon', rel: 'apple-touch-icon', href: iconBig.src, sizes: iconBig.sizes })
9494
}
9595

9696
// Launch Screen Image (IOS)
@@ -122,7 +122,7 @@ export function meta (nuxt, pwa: PWAContext, moduleContainer) {
122122
// TODO: Drop support as it is harmful: https://mathiasbynens.be/notes/rel-shortcut-icon
123123
const favicon = join(nuxt.options.srcDir, nuxt.options.dir.static, 'favicon.ico')
124124
if (existsSync(favicon)) {
125-
head.link.push({ rel: 'shortcut icon', href: nuxt.options.router.base + 'favicon.ico' })
125+
head.link.push({ hid: 'shortcut-icon', rel: 'shortcut icon', href: nuxt.options.router.base + 'favicon.ico' })
126126
}
127127
}
128128

0 commit comments

Comments
 (0)