From 5603bf0584c9872c7aeed03d9f84ea755a28239b Mon Sep 17 00:00:00 2001 From: Gnome Ann <> Date: Wed, 25 Aug 2021 19:22:35 -0400 Subject: [PATCH] Hide messages on updatechunk and removechunk --- static/application.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/application.js b/static/application.js index 65b65009..905242d5 100644 --- a/static/application.js +++ b/static/application.js @@ -855,6 +855,7 @@ $(document).ready(function(){ $('#gamescreen').animate({scrollTop: $('#gamescreen').prop('scrollHeight')}, 1000); }, 5); } else if(msg.cmd == "updatechunk") { + hideMessage(); const {index, html, last} = msg.data; const existingChunk = game_text.children(`#n${index}`) const newChunk = $(html); @@ -875,6 +876,7 @@ $(document).ready(function(){ }, 5); } } else if(msg.cmd == "removechunk") { + hideMessage(); let index = msg.data; // Remove the chunk game_text.children(`#n${index}`).remove()