From 2344fc0a81fb0a63a201489377a530620dc1ad98 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sat, 5 Oct 2024 22:39:40 +0200 Subject: [PATCH] mobile: wrong fastdom usage in theme color update routine --- src/client/ui/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/ui/utils.js b/src/client/ui/utils.js index 903b6692..35f0dee2 100644 --- a/src/client/ui/utils.js +++ b/src/client/ui/utils.js @@ -46,11 +46,11 @@ module.exports = { fastdom.measure(()=>{ - var style = window.getComputedStyle(root ? root.widget : document.documentElement) + var style = window.getComputedStyle(root ? root.widget : document.documentElement), + color = style.getPropertyValue('--color-background').trim() fastdom.mutate(()=>{ - var color = style.getPropertyValue('--color-background').trim() try { for (var el of DOM.get('meta[name="theme-color"], meta[name="apple-mobile-web-app-status-bar-style"]')) { el.setAttribute('content', color)