css change and others

This commit is contained in:
zyqunix 2025-05-11 20:48:35 +02:00
parent 18f63aff63
commit 021a3789a5
No known key found for this signature in database
GPG key ID: 134A8DEEA83B80E6
3 changed files with 9 additions and 5 deletions

View file

@ -58,8 +58,12 @@ function lan() {
const borderColor = statusColors[data.discord_status] || statusColors.offline;
pfpElem.style.borderColor = borderColor;
statusElem.innerHTML = `<strong class="quote">"${status ? status.state : "No Custom Status"}"</strong> - zyqunix`;
if (status) {
statusElem.innerHTML = `<strong class="quote">"${status.state}"</strong> - zyqunix`;
} else {
statusElem.innerHTML = `<strong class="quote">Empty void. Nothingness.</strong>`;
}
if (gameActivity) {
activityNameElem.innerHTML = `<strong>Playing</strong> ${gameActivity.name}: ${gameActivity.details}, ${gameActivity.state}`;