add: background, custom topbar

This commit is contained in:
2025-07-07 04:41:17 +05:00
parent 261b9ac253
commit 76917e3f90
11 changed files with 291 additions and 28 deletions

View File

@ -772,9 +772,6 @@ export function initServerStatusHandler() {
try {
// Формируем адрес с портом, если указан
const serverAddress = port ? `${host}:${port}` : host;
console.log(
`Запрос статуса сервера: ${MCSTATUS_API_URL}${serverAddress}`,
);
// Делаем запрос к API mcstatus.io
const response = await fetch(`${MCSTATUS_API_URL}${serverAddress}`);
@ -786,7 +783,6 @@ export function initServerStatusHandler() {
}
const data = await response.json();
console.log('Получен ответ от API:', data);
if (data.online) {
return {