mirror of https://gitlab.com/curben/blog
refactor(sitemap): Array.concat() to Array.push()
This commit is contained in:
parent
6d18a37e09
commit
8b510a0380
|
@ -17,7 +17,7 @@ module.exports = function (locals) {
|
||||||
let skipRenderList = ['*.js', '*.css']
|
let skipRenderList = ['*.js', '*.css']
|
||||||
|
|
||||||
if (Array.isArray(config.skip_render)) {
|
if (Array.isArray(config.skip_render)) {
|
||||||
skipRenderList = skipRenderList.concat(config.skip_render)
|
skipRenderList.push(...config.skip_render)
|
||||||
} else if (config.skip_render != null) {
|
} else if (config.skip_render != null) {
|
||||||
skipRenderList.push(config.skip_render)
|
skipRenderList.push(config.skip_render)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue