diff --git a/js/comics.js b/js/comics.js index c74ca49..5946bc4 100644 --- a/js/comics.js +++ b/js/comics.js @@ -102,9 +102,7 @@ function getFolderContents() { redirectToLogin(); return; } - data.contents.forEach(function(entry, index) { - $("#list").append(entry.div); - }); + $("#list").html(data.contents.map(e => e.div).join("")); toastr.remove(); }, error : function(xhr, stat, err) {