Put the icon in the link array for iOS only

This commit is contained in:
ipcintron 2024-02-16 10:10:09 -06:00 committed by GitHub
parent ef96f3102f
commit 1364b79cbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,8 @@ module.exports = {
],
script: [],
link: [
{ rel: 'icon', type: 'image/x-icon', href: (process.env.ROUTER_BASE_PATH || '') + '/favicon.ico' }
{ rel: 'icon', type: 'image/x-icon', href: (process.env.ROUTER_BASE_PATH || '') + '/favicon.ico' },
{ rel: 'apple-touch-icon', href: (process.env.ROUTER_BASE_PATH || '') + '/icon256.png' }
]
},
@ -110,7 +111,7 @@ module.exports = {
sizes: 'any'
},
{
src: (process.env.ROUTER_BASE_PATH || '') + '/icon256.png',
src: (process.env.ROUTER_BASE_PATH || '') + '/icon192.png',
type: 'image/png',
sizes: 'any'
}