fix pwa display mode detection
This commit is contained in:
+1
-1
@@ -342,7 +342,7 @@ class GeckoPwaApiImpl(
|
|||||||
currentUrl = currentUrl,
|
currentUrl = currentUrl,
|
||||||
name = name,
|
name = name,
|
||||||
shortName = shortName,
|
shortName = shortName,
|
||||||
display = display?.name?.lowercase(),
|
display = display?.name?.lowercase()?.replace("_", "-"),
|
||||||
themeColor = themeColor?.let { String.format("#%06X", 0xFFFFFF and it) },
|
themeColor = themeColor?.let { String.format("#%06X", 0xFFFFFF and it) },
|
||||||
backgroundColor = backgroundColor?.let { String.format("#%06X", 0xFFFFFF and it) },
|
backgroundColor = backgroundColor?.let { String.format("#%06X", 0xFFFFFF and it) },
|
||||||
scope = scope,
|
scope = scope,
|
||||||
|
|||||||
+1
-1
@@ -320,7 +320,7 @@ class Events(
|
|||||||
currentUrl = currentUrl,
|
currentUrl = currentUrl,
|
||||||
name = manifest.name,
|
name = manifest.name,
|
||||||
shortName = manifest.shortName,
|
shortName = manifest.shortName,
|
||||||
display = manifest.display?.name?.lowercase(),
|
display = manifest.display?.name?.lowercase()?.replace("_", "-"),
|
||||||
themeColor = manifest.themeColor?.let { String.format("#%06X", 0xFFFFFF and it) },
|
themeColor = manifest.themeColor?.let { String.format("#%06X", 0xFFFFFF and it) },
|
||||||
backgroundColor = manifest.backgroundColor?.let { String.format("#%06X", 0xFFFFFF and it) },
|
backgroundColor = manifest.backgroundColor?.let { String.format("#%06X", 0xFFFFFF and it) },
|
||||||
scope = manifest.scope,
|
scope = manifest.scope,
|
||||||
|
|||||||
Reference in New Issue
Block a user