Merge branch 'master' of github.com:qingwei-li/docsify

This commit is contained in:
qingwei.li 2017-07-26 08:37:02 +08:00
commit b8a96b867b
11 changed files with 26 additions and 11 deletions

View file

@ -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)
}