add clone functionality

This commit is contained in:
2020-12-20 16:03:47 +01:00
parent 62cb680181
commit 77352b3c10
5 changed files with 30 additions and 11 deletions

View File

@@ -31,8 +31,9 @@ class View {
removeDirTree() {
let mainul = document.getElementsByTagName("ul")[0];
if (mainul !== undefined) {
mainul.firstChild.remove();
while (mainul.firstChild) {
mainul.lastChild.remove();
}
this.hloubka = 1;
}
}