1
0
Fork 0
forked from jriou/coller

fix: use innerText instead of innerHTML

This commit is contained in:
Thibault Piron 2025-10-13 14:27:31 +00:00
commit 09dd88783e
Signed by: tapiron
GPG key ID: AD0AE183112CCC00

View file

@ -48,7 +48,7 @@
if (encryptionKey != "") {
copierCommand += "#" + encryptionKey;
}
document.getElementById("copierCommand").innerHTML = copierCommand;
document.getElementById("copierCommand").innerText = copierCommand;
document.getElementById("copier").addEventListener("click", () => {
document.getElementById("copierContainer").style.display = "";
});
@ -77,7 +77,7 @@
curlCommand += " -XPOST -d '" + payload + "'";
}
curlCommand += " " + window.location.origin + "/api/note/{{ .Note.ID }}";
document.getElementById("curlCommand").innerHTML = curlCommand;
document.getElementById("curlCommand").innerText = curlCommand;
document.getElementById("curl").addEventListener("click", () => {
document.getElementById("curlContainer").style.display = "";
});