fix: use innerText instead of innerHTML (#47)
All checks were successful
/ pre-commit (push) Successful in 1m57s
All checks were successful
/ pre-commit (push) Successful in 1m57s
Reviewed-on: #47 Reviewed-by: Julien Riou <jriou@monitoring@riou.xyz> Co-authored-by: Thibault Piron <thibault.piron.ext@ovhcloud.com> Co-committed-by: Thibault Piron <thibault.piron.ext@ovhcloud.com>
This commit is contained in:
parent
020b50fb58
commit
121971210a
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@
|
||||||
if (encryptionKey != "") {
|
if (encryptionKey != "") {
|
||||||
copierCommand += "#" + encryptionKey;
|
copierCommand += "#" + encryptionKey;
|
||||||
}
|
}
|
||||||
document.getElementById("copierCommand").innerHTML = copierCommand;
|
document.getElementById("copierCommand").innerText = copierCommand;
|
||||||
document.getElementById("copier").addEventListener("click", () => {
|
document.getElementById("copier").addEventListener("click", () => {
|
||||||
document.getElementById("copierContainer").style.display = "";
|
document.getElementById("copierContainer").style.display = "";
|
||||||
});
|
});
|
||||||
|
@ -77,7 +77,7 @@
|
||||||
curlCommand += " -XPOST -d '" + payload + "'";
|
curlCommand += " -XPOST -d '" + payload + "'";
|
||||||
}
|
}
|
||||||
curlCommand += " " + window.location.origin + "/api/note/{{ .Note.ID }}";
|
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("curl").addEventListener("click", () => {
|
||||||
document.getElementById("curlContainer").style.display = "";
|
document.getElementById("curlContainer").style.display = "";
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue