diff --git a/content/hypno/colors/colors.js b/content/hypno/colors/colors.js index 644bece..5fa0904 100644 --- a/content/hypno/colors/colors.js +++ b/content/hypno/colors/colors.js @@ -17,14 +17,14 @@ function changeWord() { var newWord; do { newWord = randomChoice(wordList); - } while (newWord === wordEl.innerText); + } while (newWord === wordEl.textContent); var newColor; do { newColor = randomChoice(colors); } while (newColor === wordEl.style.color); - wordEl.innerText = newWord; + wordEl.textContent = newWord; wordEl.style.color = newColor; } diff --git a/content/hypno/loading/loading.js b/content/hypno/loading/loading.js index f5a64a4..914168e 100644 --- a/content/hypno/loading/loading.js +++ b/content/hypno/loading/loading.js @@ -49,7 +49,7 @@ var progress = 0; var progressInterval; function makeProgress() { if (progress >= 100) { - document.getElementById("status").innerText = "SLEEP"; + document.getElementById("status").textContent = "SLEEP"; document.getElementById("back").style.display = "inline"; document.getElementById("reload").style.display = "inline"; clearInterval(progressInterval); @@ -74,7 +74,7 @@ function updateStatus() { } else { newStatus = randomChoice(boringStatuses); } - document.getElementById("status").innerText = newStatus; + document.getElementById("status").textContent = newStatus; } for (let el of document.getElementsByTagName("input")) {