Skip to content

Commit

Permalink
fix: style rerender due to setting themeColor
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Jul 24, 2017
1 parent f59aac4 commit 17ff3d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/render/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ export function initRender (vm) {
dom.before(navAppendToTarget, navEl)

if (config.themeColor) {
dom.$.head.innerHTML += tpl.theme(config.themeColor)
dom.$.head.appendChild(
dom.create('div', tpl.theme(config.themeColor)).getRootNode()
)
// Polyfll
cssVars(config.themeColor)
}
Expand Down

0 comments on commit 17ff3d1

Please sign in to comment.