Fix variable shadowing

63c5330920408268dbf27df8bf5c5bcff8117a97

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +6 -6Showing whitespace changes
public/script.js+6 -6
@@ -9243,14 +9243,14 @@ jQuery(async function () {
92439243 immediately ? autoFitEditTextArea(e.target) : autoFitEditTextAreaDebounced(e.target);
92449244 }
92459245 });
92469246 const chatElementchatElementScroll = document.getElementById('chat');
92479247 chatElementchatElementScroll.addEventListener('wheel', function () {
92489248 scrollLock = true;
92499249 }, { passive: true });
92509250 chatElementchatElementScroll.addEventListener('touchstart', function () {
92519251 scrollLock = true;
92529252 }, { passive: true });
92539253 chatElementchatElementScroll.addEventListener('scroll', function () {
92549254 if (is_use_scroll_holder) {
92559255 this.scrollTop = scroll_holder;
92569256 is_use_scroll_holder = false;
@@ -9806,7 +9806,7 @@ jQuery(async function () {
98069806 });
98079807
98089808 //confirms message deletion with the "ok" button
98099809 $('#dialogue_del_mes_ok').clickon('click', async function () {
98109810 $('#dialogue_del_mes').css('display', 'none');
98119811 $('#send_form').css('display', css_send_form_display);
98129812 $('.del_checkbox').each(function () {
@@ -9822,7 +9822,7 @@ jQuery(async function () {
98229822 chat.length = this_del_mes;
98239823 await saveChatConditional();
98249824 chatElement.scrollTop(chatElement[0].scrollHeight);
98259825 await eventSource.emit(event_types.MESSAGE_DELETED, chat.length);
98269826 $('#chat .mes').removeClass('last_mes');
98279827 $('#chat .mes').last().addClass('last_mes');
98289828 } else {