Skip to content

Commit b8dd346

Browse files
committed
fix(render): Remove getRootNode to be compatible with the lower version of Chrome, fixed #225
1 parent 7191d70 commit b8dd346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/core/render/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export function initRender (vm) {
212212

213213
if (config.themeColor) {
214214
dom.$.head.appendChild(
215-
dom.create('div', tpl.theme(config.themeColor)).getRootNode()
215+
dom.create('div', tpl.theme(config.themeColor)).firstElementChild
216216
)
217217
// Polyfll
218218
cssVars(config.themeColor)

0 commit comments

Comments
 (0)