remove api server pings

This commit is contained in:
Aidan 2024-11-07 13:39:22 -05:00
parent 8992facc1f
commit bdd7f6f7e9

View File

@ -14,7 +14,6 @@ async function testPing() {
const urls = [ const urls = [
'https://aidxn.fun/ping', 'https://aidxn.fun/ping',
'https://kantor.aidxn.fun/ping', 'https://kantor.aidxn.fun/ping',
'https://api.aidxn.fun/ping'
]; ];
const pingResults = await Promise.all( const pingResults = await Promise.all(
@ -29,11 +28,6 @@ async function testPing() {
status1.textContent = `[ONLINE - ${time} ms]` status1.textContent = `[ONLINE - ${time} ms]`
status1.className = 'text-green-500 font-bold'; 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 }; return { url, time };
}) })
); );
@ -53,10 +47,6 @@ async function testPing() {
oldText = status1.textContent; oldText = status1.textContent;
status1.textContent = oldText + ' [FASTEST]'; status1.textContent = oldText + ' [FASTEST]';
} }
if (fastestServer === 'https://api.aidxn.fun/ping') {
oldText = api.textContent;
api.textContent = oldText + ' [FASTEST]';
}
} }
window.onload = () => { window.onload = () => {