Skip to content

Commit 708f5b7

Browse files
committed
Fix JavaScript to use correct property
1 parent 76d00f8 commit 708f5b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/main/js/scripts/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ var postRequest = new XMLHttpRequest();
22
postRequest.onreadystatechange = function () {
33
if (postRequest.readyState == 4) {
44
if (postRequest.status == 200) {
5-
document.getElementById("result").innerText = postRequest.responseText;
5+
document.getElementById("result").textContent = postRequest.responseText;
66
} else {
7-
document.getElementById("result").innerTest = "An error has occurred";
7+
document.getElementById("result").textContent = "An error has occurred";
88
}
99
}
1010
};

0 commit comments

Comments
 (0)