Fix code highlight, fix cloning

This commit is contained in:
Vadim
2021-01-24 23:36:21 +03:00
parent 6de0ab7298
commit 1e0b3d3020
7 changed files with 68 additions and 46 deletions

View File

@@ -96,7 +96,7 @@
}
function addClones() {
const first = pagesElement.firstChild
const first = pagesElement.children[0]
const last = pagesElement.children[pagesElement.children.length - 1]
pagesElement.prepend(last.cloneNode(true))
pagesElement.append(first.cloneNode(true))