Set a theme-color in the template again, so mobile Chrome uses it properly

This commit is contained in:
Danielle McLean 2018-06-28 11:10:56 +10:00
parent 5cf566251a
commit dec5ef153b
Signed by: 00dani
GPG key ID: 8EB789DDF3ABD240
3 changed files with 5 additions and 12 deletions

View file

@ -24,17 +24,7 @@ def manifest(request):
'start_url': urljoin(base, start_url),
'background_color': color(0),
'theme_color': color(2),
'theme_color': color(10),
}
# icons = FaviconImg.objects.filter(
# faviconFK__isFavicon=True,
# rel__in=rels,
# ).order_by('size')
# app['icons'] = [{
# 'type': 'image/png',
# 'sizes': '{0}x{0}'.format(icon.size),
# 'src': urljoin(base, icon.faviconImage.url),
# } for icon in icons]
return JsonResponse(app, content_type='application/manifest+json')