aboutsummaryrefslogtreecommitdiff
path: root/src/js/arching-kaos-log.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/arching-kaos-log.js')
-rw-r--r--src/js/arching-kaos-log.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/js/arching-kaos-log.js b/src/js/arching-kaos-log.js
index 67a9d37..1f79994 100644
--- a/src/js/arching-kaos-log.js
+++ b/src/js/arching-kaos-log.js
@@ -7,11 +7,12 @@
*/
function archingKaosLog(message){
- var sta = document.createElement("div");
var lts = new Date(Date.now());
- var fmsg = lts.toISOString() + " " + message;
- sta.innerText = fmsg
- currentLogMessageElement.innerHTML = fmsg;
- logsAreaElement.appendChild(sta);
+ var sta = {
+ element:"div",
+ innerText: lts.toISOString() + " " + message
+ };
+ currentLogMessageElement.innerText = sta.innerText;
+ makeElement(sta, logsAreaElement);
}
// @license-end