diff options
author | Einar Egilsson <einar@einaregilsson.com> | 2019-12-13 10:15:32 +0000 |
---|---|---|
committer | Einar Egilsson <einar@einaregilsson.com> | 2019-12-13 10:15:32 +0000 |
commit | b473306d442b92123cf505dd634faeb141714614 (patch) | |
tree | b0b35eba4f70e3ba06fce6d8d785237e738449f2 /js/util.js | |
parent | 8ca4e7c6f7b9465b8dafdf8798bf609f9764ea0e (diff) |
Replace .innerHTML with .textContent and bump version
Diffstat (limited to 'js/util.js')
-rw-r--r-- | js/util.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -32,7 +32,7 @@ function dataBind(el, dataObject) { } } else { - tag.innerHTML = dataObject[prop]; + tag.textContent = dataObject[prop]; } } for (let tag of el.querySelectorAll('[data-show]')) { @@ -102,7 +102,7 @@ function showMessage(message, success) { //Remove the message in 20 seconds if it hasn't been changed... setTimeout(function() { - if (el('#message').innerHTML === message) { + if (el('#message').textContent === message) { messageBox.className = ''; //Removing .visible removes the box... } }, timer * 1000); |