mirror of
https://github.com/wahyd4/docsify.git
synced 2026-08-09 05:16:06 +10:00
fix(render): Remove getRootNode to be compatible with the lower version of Chrome, fixed #225
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user