From b8dd346bafe77f210f96b13f8c93c499982cd163 Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Wed, 26 Jul 2017 18:52:36 +0800 Subject: [PATCH] fix(render): Remove getRootNode to be compatible with the lower version of Chrome, fixed #225 --- src/core/render/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/render/index.js b/src/core/render/index.js index 6071fe290..8e51842ca 100644 --- a/src/core/render/index.js +++ b/src/core/render/index.js @@ -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)