diff --git a/src/meta.ts b/src/meta.ts index 1aaee0f7..c876e1f7 100755 --- a/src/meta.ts +++ b/src/meta.ts @@ -89,8 +89,8 @@ export function meta (nuxt, pwa: PWAContext, moduleContainer) { // Shortcut icon if (options.favicon) { - head.link.push({ rel: 'shortcut icon', href: iconSmall.src }) - head.link.push({ rel: 'apple-touch-icon', href: iconBig.src, sizes: iconBig.sizes }) + head.link.push({ hid: 'shortcut-icon', rel: 'shortcut icon', href: iconSmall.src }) + head.link.push({ hid: 'apple-touch-icon', rel: 'apple-touch-icon', href: iconBig.src, sizes: iconBig.sizes }) } // Launch Screen Image (IOS) @@ -122,7 +122,7 @@ export function meta (nuxt, pwa: PWAContext, moduleContainer) { // TODO: Drop support as it is harmful: https://mathiasbynens.be/notes/rel-shortcut-icon const favicon = join(nuxt.options.srcDir, nuxt.options.dir.static, 'favicon.ico') if (existsSync(favicon)) { - head.link.push({ rel: 'shortcut icon', href: nuxt.options.router.base + 'favicon.ico' }) + head.link.push({ hid: 'shortcut-icon', rel: 'shortcut icon', href: nuxt.options.router.base + 'favicon.ico' }) } }