From 36037c3cfae927ac7dce21963c72b78e4a32b48d Mon Sep 17 00:00:00 2001 From: borissedw Date: Sun, 10 Sep 2023 15:04:51 +0300 Subject: [PATCH] 0.0.236 --- static/js/global_js.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/static/js/global_js.js b/static/js/global_js.js index 874f98c..2b27e0d 100644 --- a/static/js/global_js.js +++ b/static/js/global_js.js @@ -11,12 +11,8 @@ window.onload = function (){ function middleWareJS(){ let footer = document.querySelector("footer") - if (document.querySelector("h1")){ - if (document.querySelector("h1").innerHTML === "Написать сообщение" || document.querySelector("h1").innerHTML === "Write message") { - footer.style.display = "none" - } else { - footer.style.display = "" - } + if (document.querySelector(".block-list-of-users")){ + footer.style.display = "none" } else { footer.style.display = "" }