From 13373f2f1fd3ef487227e5df2fffb916aa10ee22 Mon Sep 17 00:00:00 2001 From: dwiekawki Date: Sat, 18 Jan 2025 21:24:45 +0100 Subject: [PATCH] chore(web): remove proxy status and check --- web/app.js | 24 ------------------------ web/index.html | 2 -- 2 files changed, 26 deletions(-) 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 @@

Beerus WebAssembly Demo

  • Beerus is a light client for Starknet
  • Press ESC or click outside this message to hide it
  • Click "Info" button to show this message again
  • -
  • Make sure the proxy is listening at localhost:3000
  • Paste the Alchemy API key
  • Click "Init" and wait for ✅
  • Check logs in case of ❌