diff --git a/static/main.css b/static/main.css index 3b684b5..60cf8e1 100644 --- a/static/main.css +++ b/static/main.css @@ -42,7 +42,7 @@ body { } .emoticon { - height: 2rem; + width: 2rem; } @keyframes slide { diff --git a/static/main.js b/static/main.js index 82b1b55..a266491 100644 --- a/static/main.js +++ b/static/main.js @@ -66,7 +66,7 @@ function formatEmotes(text, emotes) { empty = Array.apply(null, new Array(length + 1)).map(function() { return '' }); splitText = splitText.slice(0, mote[0]).concat(empty).concat(splitText.slice(mote[1] + 1, splitText.length)); splitText = splitText.map((x) => escapeHtml(x)); - splitText.splice(mote[0], 1, ''); + splitText.splice(mote[0], 1, ''); } } } @@ -91,6 +91,7 @@ function replaceAll(input, from, to) { } function addMessage(object) { + console.log(object); messages .className = ""; let message = new Message(object); messages.appendChild(message.createEl());