Skip to content

Commit

Permalink
innherHTML -> innerText
Browse files Browse the repository at this point in the history
  • Loading branch information
KristjanESPERANTO committed Dec 22, 2021
1 parent c2d7a21 commit 605f531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function mergeCanvases() {
function shiftLine() {
let shiftLine = document.getElementById("infoText");
// Replace spaces to prevent problems when spaces are at the beginning at a string while shifting
shiftLine.innerHTML = shiftLine.innerHTML.replaceAll(" ", " ");
shiftLine.innerText = shiftLine.innerText.replaceAll(" ", "\u00a0");
// Remove the first character
shiftLine.innerText = shiftLine.innerText.slice(1);
}
Expand Down

0 comments on commit 605f531

Please sign in to comment.