From 9a26e678da4c23a2aa791c0fefc28801c39b8468 Mon Sep 17 00:00:00 2001 From: Feodor Fitsner Date: Mon, 4 Nov 2024 12:34:59 -0800 Subject: [PATCH] Fix pwa_background_color in template --- {{cookiecutter.out_dir}}/web/manifest.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.out_dir}}/web/manifest.json b/{{cookiecutter.out_dir}}/web/manifest.json index 2afd07a..9e2b3e3 100644 --- a/{{cookiecutter.out_dir}}/web/manifest.json +++ b/{{cookiecutter.out_dir}}/web/manifest.json @@ -3,8 +3,8 @@ "short_name": "{{ cookiecutter.project_name }}", "start_url": ".", "display": "standalone", - "background_color": "{{ cookiecutter.pwa_background_color }}", - "theme_color": "{{ cookiecutter.pwa_theme_color }}", + "background_color": "{{ cookiecutter.pwa_background_color if cookiecutter.pwa_background_color else '#0175C2' }}", + "theme_color": "{{ cookiecutter.pwa_theme_color if cookiecutter.pwa_theme_color else '#0175C2' }}", "description": "{{ cookiecutter.project_description }}", "orientation": "portrait-primary", "prefer_related_applications": false,