Skip to content

Commit

Permalink
Fix previews being dupplicated
Browse files Browse the repository at this point in the history
  • Loading branch information
Xwilarg committed Aug 13, 2024
1 parent e319ca4 commit b7917a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _internal/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ function showFileModal(target, filename, content) {
clone.querySelector("a").href = target.href

// add into modal and show it
document.querySelector(".modal-body").appendChild(clone)
document.querySelector(".modal-body").innerHTML = clone
document.getElementById("modal").style.display = "block"
}

0 comments on commit b7917a1

Please sign in to comment.