From 4d1b375c3520981b6c84ea5f14f8dc77262c0c2f Mon Sep 17 00:00:00 2001 From: xenofem Date: Fri, 20 Nov 2020 14:04:08 -0500 Subject: [PATCH] use textContent rather than innerText --- content/hypno/colors/colors.js | 4 ++-- content/hypno/loading/loading.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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")) {