From 8f03183152a122828b0e4af7ac2055bd0b63edb6 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Thu, 3 Feb 2022 10:38:34 +0100 Subject: [PATCH] Allow maskable icons for non-masked use; mitigates #640 --- CHANGELOG.rst | 6 ++++++ aleksis/core/views.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 5405e8c4d..1205a5b20 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -15,8 +15,14 @@ Fixed * Migration added in 2.7.2 did not work in all scenarios * [Dev] Field change tracking API for Person was broken in 2.7.2 * [OAuth] Automatic clean-up of expired OAuth tokens could fail +* Allow maskable icons for non-masked use * Add missing documentation +Known issues +~~~~~~~~~~~~ + +* Maskable and non-masked icons *purpose) any cannot be separated + `2.7.2`_ - 2022-01-31 --------------------- diff --git a/aleksis/core/views.py b/aleksis/core/views.py index 539807bf1..c23498a8b 100644 --- a/aleksis/core/views.py +++ b/aleksis/core/views.py @@ -175,7 +175,7 @@ class ManifestView(View): { "src": favicon_img.faviconImage.url, "sizes": f"{favicon_img.size}x{favicon_img.size}", - "purpose": "maskable" if prefs["theme__pwa_icon_maskable"] else "any", + "purpose": "maskable any" if prefs["theme__pwa_icon_maskable"] else "any", } for favicon_img in pwa_imgs ] -- GitLab