fix(render): Remove getRootNode to be compatible with the lower version of Chrome, fixed #225

This commit is contained in:
qingwei.li 2017-07-26 18:52:36 +08:00
commit b8dd346baf

View file

@ -212,7 +212,7 @@ export function initRender (vm) {
if (config.themeColor) {
dom.$.head.appendChild(
dom.create('div', tpl.theme(config.themeColor)).getRootNode()
dom.create('div', tpl.theme(config.themeColor)).firstElementChild
)
// Polyfll
cssVars(config.themeColor)