diff --git a/web/app.js b/web/app.js index 2d71f88b..95d33ae6 100644 --- a/web/app.js +++ b/web/app.js @@ -6,10 +6,8 @@ document.addEventListener("DOMContentLoaded", () => { const alchemyKeyInput = document.getElementById("alchemy-key"); const initBtn = document.getElementById("init-btn"); const statusSpan = document.getElementById("status"); - const proxySpan = document.getElementById("proxy"); const modalOverlay = document.getElementById("modal-overlay"); const infoBtn = document.getElementById("info-btn"); - const proxyBtn = document.getElementById("proxy-btn"); let messageId = 1; const statusIcons = { @@ -193,26 +191,6 @@ document.addEventListener("DOMContentLoaded", () => { }); } - function checkProxy() { - proxySpan.innerText = statusIcons.pending; - timeout(1000, fetch('http://127.0.0.1:3000/check')) - .then(response => response.text()) - .then(response => { - console.log('Proxy:', response); - if (response.trim() === 'ready') { - proxySpan.innerText = statusIcons.ready; - } else { - proxySpan.innerText = statusIcons.unknown; - } - }) - .catch((e) => { - console.error('Proxy:', e); - proxySpan.innerText = statusIcons.error; - }); - } - - proxyBtn.addEventListener("click", checkProxy); - modalOverlay.style.display = "flex"; infoBtn.addEventListener("click", () => { modalOverlay.style.display = "flex"; @@ -223,6 +201,4 @@ document.addEventListener("DOMContentLoaded", () => { modalOverlay.style.display = "none"; } }); - - checkProxy(); }); diff --git a/web/index.html b/web/index.html index 634f05a2..7db89de8 100644 --- a/web/index.html +++ b/web/index.html @@ -15,7 +15,6 @@ - @@ -40,7 +39,6 @@