feat: custom page favicon upload (#380)

* feat: custom  page  favicon  upload

* fix helper text

* fix ios icon

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
Favour Olayinka
2024-04-22 15:46:19 +01:00
committed by GitHub
parent e70d0955d0
commit 7cad0a0c3d
3 changed files with 51 additions and 2 deletions

View File

@@ -207,6 +207,31 @@ useHead({
}
return titleChunk ? `${titleChunk} - OpnForm` : 'OpnForm'
},
script: [ { src: '/widgets/iframeResizer.contentWindow.min.js' } ]
link: pageMeta.value.page_favicon ? [
{
rel: 'icon', type: 'image/x-icon',
href: pageMeta.value.page_favicon
},
{
rel: 'apple-touch-icon',
type: 'image/png',
href: pageMeta.value.page_favicon
},
{
rel: 'shortcut icon',
href: pageMeta.value.page_favicon
}
] : {},
meta: pageMeta.value.page_favicon ? [
{
name: 'apple-mobile-web-app-capable',
content: 'yes'
},
{
name: 'apple-mobile-web-app-status-bar-style',
content: 'black-translucent'
},
] : {},
script: [{ src: '/widgets/iframeResizer.contentWindow.min.js' } ]
})
</script>