diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index c5f84f7..7883440 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -774,7 +774,10 @@ function open_curtain (left=null,right=null,overlay=null,close=null){ function curtainMove (curtain,container_curtain,curtain_name,body){ let user_type = getInfoAboutUser() - if (user_type === 'mobile' || !window.location.host.includes('profile') || user_type === 'laptop' ) { + // if (user_type === 'mobile' || !window.location.host.includes('profile') || user_type === 'laptop' ) + // заменил host на href ибо в host хранится имя хоста, а не путь в котором мы ищем profile + if (user_type === 'mobile' || !window.location.href.includes('profile') || user_type === 'laptop' ) + { curtain.classList.toggle("open") curtain.classList.toggle("close")