Set obvious name in manifest if config missing

This commit is contained in:
Robbie Antenesse 2019-09-06 22:09:56 -06:00
parent f405dbad69
commit 468fee56dd
1 changed files with 2 additions and 2 deletions

View File

@ -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',