From 9110fd7555f5318ff8604e9915bed49a02fc7974 Mon Sep 17 00:00:00 2001 From: Eduard Tihomirov Date: Thu, 10 Jul 2025 15:02:36 +0300 Subject: [PATCH] SUPPORT-9273: Fix --- html/index.html | 4 ++-- html/script/browser-check.js | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/html/index.html b/html/index.html index af16e65..f745d43 100644 --- a/html/index.html +++ b/html/index.html @@ -36,8 +36,8 @@
Для организаций
-
Направление сведений через ">Личный кабинет

- " class="btn">Подробнее +
Направление сведений через ">Личный кабинет

+ " class="btn">Подробнее
diff --git a/html/script/browser-check.js b/html/script/browser-check.js index 08fb837..0e5a19c 100644 --- a/html/script/browser-check.js +++ b/html/script/browser-check.js @@ -1,10 +1,8 @@ window.addEventListener('DOMContentLoaded', () => { const userAgent = navigator.userAgent; if (!(userAgent.includes("Chromium GOST") || userAgent.includes("YaBrowser"))) { - const links = document.getElementById("ul-lk"); - links.forEach(link => { - link.classList.add('disabled'); - link.addEventListener('click', (e) => e.preventDefault()); - }); + const link = document.getElementById("ul-lk"); + link.classList.add('disabled'); + link.addEventListener('click', (e) => e.preventDefault()); } }); \ No newline at end of file