From fbe54ad65a59b99f6848e6ab5671474b1f594049 Mon Sep 17 00:00:00 2001 From: borissedw Date: Fri, 11 Aug 2023 14:11:50 +0300 Subject: [PATCH] 0.0.104 --- static/js/check_new_messages.js | 5 ++++- templates/blocks/profile/b_support_chat.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/static/js/check_new_messages.js b/static/js/check_new_messages.js index ddcbb61..b4c97f6 100644 --- a/static/js/check_new_messages.js +++ b/static/js/check_new_messages.js @@ -9,7 +9,10 @@ window.onload = function () { function funcFocus(){ - document.querySelector(".enter-message-inp").focus() + let inp = document.querySelector(".enter-message-inp") + if (inp !== null){ + inp.focus() + } } diff --git a/templates/blocks/profile/b_support_chat.html b/templates/blocks/profile/b_support_chat.html index 88cb3a6..1c84c09 100644 --- a/templates/blocks/profile/b_support_chat.html +++ b/templates/blocks/profile/b_support_chat.html @@ -48,7 +48,7 @@