Set obvious name in manifest if config missing
This commit is contained in:
parent
f405dbad69
commit
468fee56dd
|
@ -9,8 +9,8 @@ async function routes(fastify, options) {
|
||||||
|
|
||||||
fastify.get('/manifest.webmanifest', async (request, reply) => {
|
fastify.get('/manifest.webmanifest', async (request, reply) => {
|
||||||
const manifest = {
|
const manifest = {
|
||||||
name: typeof fastify.siteConfig !== 'undefined' ? fastify.siteConfig.siteName : 'book-tracker',
|
name: typeof fastify.siteConfig !== 'undefined' ? fastify.siteConfig.siteName : 'name not configured',
|
||||||
short_name: typeof fastify.siteConfig !== 'undefined' ? fastify.siteConfig.siteName : 'book-tracker',
|
short_name: typeof fastify.siteConfig !== 'undefined' ? fastify.siteConfig.siteName : 'name not configured',
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
src: '/images/icon-128.png',
|
src: '/images/icon-128.png',
|
||||||
|
|
Loading…
Reference in New Issue