From cd9f33742329f151048fdf801228b5a63b4b4372 Mon Sep 17 00:00:00 2001 From: choelzl Date: Wed, 23 Feb 2022 20:50:41 +0100 Subject: [PATCH] WIP --- web/emotewall/index.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/web/emotewall/index.js b/web/emotewall/index.js index 639f188..ef21ff5 100644 --- a/web/emotewall/index.js +++ b/web/emotewall/index.js @@ -359,16 +359,17 @@ $(async function () { return; console.log(message.eventType, message.data) + let emote = handleEmoteData(message.data) if(message.eventType == 'bounce') { - createParticule(BounceP, handleEmoteData(message.data), {}, {}) + createParticule(BounceP, emote, {}, {}) }else if(message.eventType == 'rain') { - genRain(handleEmoteData(message.data)) + genRain(emote) }else if(message.eventType == 'firework') { - genFirework(handleEmoteData(message.data)) + genFirework(emote) }else if(message.eventType == 'volcano') { - genVolcano(handleEmoteData(message.data)) + genVolcano(emote) }else if(message.eventType == 'bomb') { - createParticule(BombP, handleEmoteData(message.data), {}, {}) + createParticule(BombP, emote, {}, {}) }else if(message.eventType == 'explosion') { //genExplosion(message.data) }else {