fix(js):undefine (#591)

* fix(js):undefine

* fix(js):undefine
pull/592/head
isAlive 2020-01-09 14:22:15 +08:00 committed by Ruipeng Zhang
parent de5746c2cd
commit f9258903b7
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@ -108,3 +108,5 @@ dist
_config*.yml*
yarn.lock
.idea

View File

@ -3,7 +3,7 @@
return Array.prototype.slice.call(document.querySelectorAll.apply(document, arguments));
}
if ($('.columns .column-right-shadow').length && !$('.columns .column-right-shadow')[0].children.length) {
if ($('.columns .column-right').length && $('.columns .column-right-shadow').length && !$('.columns .column-right-shadow')[0].children.length) {
for (const child of $('.columns .column-right')[0].children) {
$('.columns .column-right-shadow')[0].append(child.cloneNode(true));
}