mobile: wrong fastdom usage in theme color update routine
This commit is contained in:
parent
c945b8decf
commit
2344fc0a81
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue