From bdd7f6f7e9ccf628e91a322395044e7ab4db4442 Mon Sep 17 00:00:00 2001 From: Aidan Date: Thu, 7 Nov 2024 13:39:22 -0500 Subject: [PATCH] remove api server pings --- src/js/status.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/js/status.js b/src/js/status.js index 29bc475..382490b 100644 --- a/src/js/status.js +++ b/src/js/status.js @@ -14,7 +14,6 @@ async function testPing() { const urls = [ 'https://aidxn.fun/ping', 'https://kantor.aidxn.fun/ping', - 'https://api.aidxn.fun/ping' ]; const pingResults = await Promise.all( @@ -29,11 +28,6 @@ async function testPing() { status1.textContent = `[ONLINE - ${time} ms]` status1.className = 'text-green-500 font-bold'; } - if (url === 'https://api.aidxn.fun/ping') { - const api = document.getElementById("api"); - api.textContent = `[ONLINE - ${time} ms]` - api.className = 'text-green-500 font-bold'; - } return { url, time }; }) ); @@ -53,10 +47,6 @@ async function testPing() { oldText = status1.textContent; status1.textContent = oldText + ' [FASTEST]'; } - if (fastestServer === 'https://api.aidxn.fun/ping') { - oldText = api.textContent; - api.textContent = oldText + ' [FASTEST]'; - } } window.onload = () => {