From 24112ef5b5d38235ed35b98d9349d1e41b273aa5 Mon Sep 17 00:00:00 2001 From: hydrant Date: Thu, 15 Apr 2021 13:17:44 +0200 Subject: [PATCH] maybe chat fix --- ReallifeGamemode.Client/assets/chat/index.html | 2 +- ReallifeGamemode.Client/assets/chat/js/main.js | 13 ++----------- ReallifeGamemode.Client/assets/chat/js/newMain.js | 4 ++++ 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/ReallifeGamemode.Client/assets/chat/index.html b/ReallifeGamemode.Client/assets/chat/index.html index 235d45c3..d4354663 100644 --- a/ReallifeGamemode.Client/assets/chat/index.html +++ b/ReallifeGamemode.Client/assets/chat/index.html @@ -9,6 +9,6 @@ - + \ No newline at end of file diff --git a/ReallifeGamemode.Client/assets/chat/js/main.js b/ReallifeGamemode.Client/assets/chat/js/main.js index 55576e9b..fe051878 100644 --- a/ReallifeGamemode.Client/assets/chat/js/main.js +++ b/ReallifeGamemode.Client/assets/chat/js/main.js @@ -1,6 +1,4 @@ -var neatoEmojiConverter = require('neato-emoji-converter') - -let chat = +let chat = { size: 0, history_limit: 50, @@ -40,14 +38,7 @@ var chatAPI = push: (text) => { let colorPositions = []; let colors = []; - let chatElement = "
  • " - - var converter = new neatoEmojiConverter([replacements]); - text = converter.replaceShortcodesWith(text, function (unicodeChar, shortcode, name, object) { - if (unicodeChar) { return unicodeChar } - else if (object.url) { return `${name}` } - else { return shortcode } - }); + let chatElement = "
  • "; for (let i = 0; i < text.length; i++) { let colorCheck = `${text[i]}${text[i + 1]}${text[i + 2]}`; diff --git a/ReallifeGamemode.Client/assets/chat/js/newMain.js b/ReallifeGamemode.Client/assets/chat/js/newMain.js index 290c53ac..c749059b 100644 --- a/ReallifeGamemode.Client/assets/chat/js/newMain.js +++ b/ReallifeGamemode.Client/assets/chat/js/newMain.js @@ -206,6 +206,10 @@ enableChatInput(false); } + + chatAPI.push("lol"); + + $("#chat").hide(); }); }); }, { "neato-emoji-converter": 2 }], 2: [function (require, module, exports) {