From 468fee56ddc83bb3131f2312841787b4e3670ca4 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Fri, 6 Sep 2019 22:09:56 -0600 Subject: [PATCH] Set obvious name in manifest if config missing --- routes/resources.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/resources.js b/routes/resources.js index ad7e0b4..513a85b 100644 --- a/routes/resources.js +++ b/routes/resources.js @@ -9,8 +9,8 @@ async function routes(fastify, options) { fastify.get('/manifest.webmanifest', async (request, reply) => { const manifest = { - name: typeof fastify.siteConfig !== 'undefined' ? fastify.siteConfig.siteName : 'book-tracker', - short_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 : 'name not configured', icons: [ { src: '/images/icon-128.png',