fix(app): improve iOS PWA shell

This commit is contained in:
Brendan Allan 2026-06-18 09:47:53 +02:00
commit 27371cfb2b
No known key found for this signature in database
GPG key ID: 41E835AEA046A32E
4 changed files with 17 additions and 9 deletions

View file

@ -15,10 +15,11 @@
document.documentElement.dataset.theme = themeId
document.documentElement.dataset.colorScheme = mode
document.documentElement.style.backgroundColor = isDark ? "#080808" : "#fafafa"
// Update theme-color meta tag to match app color scheme
var metas = document.querySelectorAll("meta[name='theme-color']")
if (metas.length > 0) metas[0].setAttribute("content", isDark ? "#131010" : "#F8F7F7")
if (metas.length > 0) metas[0].setAttribute("content", isDark ? "#080808" : "#fafafa")
if (themeId === "oc-2") return