From 3e5d75422c3a7f849f3e436ed62fdc76af86142e Mon Sep 17 00:00:00 2001 From: Bingus_Violet Date: Thu, 4 Jan 2024 16:32:59 -0600 Subject: [PATCH] More fixes --- index.js | 11 +++++++---- static/style.css | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index d0e1b64..1e80fd7 100644 --- a/index.js +++ b/index.js @@ -72,11 +72,14 @@ function pageUpdate() { var status = lanyardData.activities[0] addedHTML += "

" if (status.emoji) { - addedHTML += `` + addedHTML += `` } - addedHTML += `"` - addedHTML += (lanyardData.activities[0].state || "") - addedHTML += `" - ${lanyardData.discord_user.display_name} ${new Date(Date.now()).getFullYear()}

` + if (status.state) { + addedHTML += `"` + addedHTML += (status.state || "") + addedHTML += `"` + } + addedHTML += ` - ${lanyardData.discord_user.display_name} ${new Date(Date.now()).getFullYear()}

` } } diff --git a/static/style.css b/static/style.css index 8e73465..3e6136c 100644 --- a/static/style.css +++ b/static/style.css @@ -141,7 +141,7 @@ img { .emoji { width: 32px; border-radius: 10%; - border: 1px gray solid; + /* border: 1px gray solid; */ } hr {