From c6e5b394f2646922f55bedbbbe2e134b9b2e2a84 Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Fri, 10 Mar 2023 23:56:14 +0200 Subject: [PATCH] Fix resetting character --- public/index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index c85f3ec8c..2d0daa6e3 100644 --- a/public/index.html +++ b/public/index.html @@ -259,8 +259,12 @@ getUserAvatars(); //console.log(chat); printMessages(); - $( "#rm_button_selected_ch" ).css("class","deselected-right-tab"); - $( "#rm_button_selected_ch" ).children("h2").text(''); + + if (!this_chid || this_chid === 'invalid-safety-id') { + $( "#rm_button_selected_ch" ).css("class","deselected-right-tab"); + $( "#rm_button_selected_ch" ).children("h2").text(''); + } + if (NavToggle.checked === false) { document.getElementById('nav-toggle').click(); };