fix pwa display mode detection

This commit is contained in:
Fabian Freund committed 2026-03-24 17:06:52 +01:00
1 parent 84e6bf2b99
commit 160a258fea
2 files changed
+2 -2

No files matched your search

@@ -342,7 +342,7 @@ class GeckoPwaApiImpl(
currentUrl = currentUrl,
name = name,
shortName = shortName,
display = display?.name?.lowercase(),
display = display?.name?.lowercase()?.replace("_", "-"),
themeColor = themeColor?.let { String.format("#%06X", 0xFFFFFF and it) },
backgroundColor = backgroundColor?.let { String.format("#%06X", 0xFFFFFF and it) },
scope = scope,
@@ -320,7 +320,7 @@ class Events(
currentUrl = currentUrl,
name = manifest.name,
shortName = manifest.shortName,
display = manifest.display?.name?.lowercase(),
display = manifest.display?.name?.lowercase()?.replace("_", "-"),
themeColor = manifest.themeColor?.let { String.format("#%06X", 0xFFFFFF and it) },
backgroundColor = manifest.backgroundColor?.let { String.format("#%06X", 0xFFFFFF and it) },
scope = manifest.scope,