Skip to content

Commit

Permalink
Merge pull request #14 from Astylodon/dupplicate
Browse files Browse the repository at this point in the history
Fix previews being dupplicated
  • Loading branch information
Xwilarg authored Aug 14, 2024
2 parents e319ca4 + b7917a1 commit 7726650
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 7726650

Please sign in to comment.