diff --git a/bnplay-audio-api.html b/bnplay-audio-api.html index df3f983..9605b58 100644 --- a/bnplay-audio-api.html +++ b/bnplay-audio-api.html @@ -154,7 +154,7 @@ console.log(error); btnToggle.classList.remove("btn-ctrl-loading"); btnToggle.classList.add("btn-ctrl-error"); - divStatus.innerHTML = error; + divStatus.textContent = error; btnToggle.value = "ERROR"; }); } @@ -164,10 +164,10 @@ divStatus = document.getElementById("divStatus"); if (bnp_isPlaying()) { - divStatus.innerHTML = "Playing..."; + divStatus.textContent = "Playing..."; btnToggle.value = "STOP"; } else { - divStatus.innerHTML = "Stopped."; + divStatus.textContent = "Stopped."; btnToggle.value = "PLAY"; } } diff --git a/bnplay-audio-tag.html b/bnplay-audio-tag.html index 370503a..619c99e 100644 --- a/bnplay-audio-tag.html +++ b/bnplay-audio-tag.html @@ -119,10 +119,10 @@ divStatus = document.getElementById("divStatus"); if (bnp_isPlaying()) { - divStatus.innerHTML = "Playing..."; + divStatus.textContent = "Playing..."; btnToggle.value = "STOP"; } else { - divStatus.innerHTML = "Stopped."; + divStatus.textContent = "Stopped."; btnToggle.value = "PLAY"; } }