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 @@
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