[build] 4.3.5
This commit is contained in:
parent
ae3f74bfd4
commit
97793bfd6c
14 changed files with 89 additions and 18 deletions
|
|
@ -238,6 +238,11 @@ function toggleClass (el, type, val) {
|
|||
el && el.classList[val ? type : 'toggle'](val || type);
|
||||
}
|
||||
|
||||
function style (content) {
|
||||
appendTo(head, create('style', content));
|
||||
}
|
||||
|
||||
|
||||
|
||||
var dom = Object.freeze({
|
||||
getNode: getNode,
|
||||
|
|
@ -251,7 +256,8 @@ var dom = Object.freeze({
|
|||
before: before,
|
||||
on: on,
|
||||
off: off,
|
||||
toggleClass: toggleClass
|
||||
toggleClass: toggleClass,
|
||||
style: style
|
||||
});
|
||||
|
||||
var inBrowser = typeof window !== 'undefined';
|
||||
|
|
@ -484,10 +490,10 @@ var cssVars = function (color) {
|
|||
if (!/\.css$/.test(href)) { return }
|
||||
|
||||
get(href).then(function (res) {
|
||||
var style = create('style', res);
|
||||
var style$$1 = create('style', res);
|
||||
|
||||
head.appendChild(style);
|
||||
replaceVar(style, color);
|
||||
head.appendChild(style$$1);
|
||||
replaceVar(style$$1, color);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
@ -3950,7 +3956,7 @@ initGlobalAPI();
|
|||
/**
|
||||
* Version
|
||||
*/
|
||||
Docsify.version = '4.3.4';
|
||||
Docsify.version = '4.3.5';
|
||||
|
||||
/**
|
||||
* Run Docsify
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue