mobile: fix build for real
This commit is contained in:
parent
8fb4662bd1
commit
c945b8decf
3 changed files with 6 additions and 9 deletions
|
|
@ -1,6 +1,5 @@
|
|||
var chroma = require('chroma-js'),
|
||||
fastdom = require('fastdom'),
|
||||
widgetManager
|
||||
fastdom = require('fastdom')
|
||||
|
||||
module.exports = {
|
||||
|
||||
|
|
@ -43,12 +42,10 @@ module.exports = {
|
|||
|
||||
},
|
||||
|
||||
updateMobileThemeColor: function(){
|
||||
|
||||
if (!widgetManager) widgetManager = require('../managers/widgets')
|
||||
updateMobileThemeColor: function(root) {
|
||||
|
||||
fastdom.measure(()=>{
|
||||
var root = widgetManager.getWidgetById('root')[0]
|
||||
|
||||
var style = window.getComputedStyle(root ? root.widget : document.documentElement)
|
||||
|
||||
fastdom.mutate(()=>{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue