From fca71334e9605b900144ed12fc0c436178c314ba Mon Sep 17 00:00:00 2001 From: creations Date: Wed, 14 May 2025 10:35:46 -0400 Subject: [PATCH 1/2] fix listening --- public/js/index.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/public/js/index.js b/public/js/index.js index 4c0bfc4..3ff4eb8 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -258,18 +258,15 @@ function buildActivityHTML(activity) { const activityTypeMap = { 0: "Playing", 1: "Streaming", - 2: "Listening", + 2: "Listening to", 3: "Watching", 4: "Custom Status", 5: "Competing", }; - const activityType = - activity.name === "Spotify" - ? "Listening to Spotify" - : activity.name === "TIDAL" - ? "Listening to TIDAL" - : activityTypeMap[activity.type] || "Playing"; + const activityType = activityTypeMap[activity.type] + ? `${activityTypeMap[activity.type]}${activity.type === 2 ? ` ${activity.name}` : ""}` + : "Playing"; const activityTimestamp = start && progress === null From bf52c02122c53a2c7dd2a441b37562d66e0f2847 Mon Sep 17 00:00:00 2001 From: creations Date: Wed, 14 May 2025 10:36:19 -0400 Subject: [PATCH 2/2] remove uneeded --- public/css/error.css | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 public/css/error.css diff --git a/public/css/error.css b/public/css/error.css deleted file mode 100644 index 65dce6b..0000000 --- a/public/css/error.css +++ /dev/null @@ -1,25 +0,0 @@ -body { - display: flex; - justify-content: center; - align-items: center; - min-height: 90vh; - background: #0e0e10; - color: #fff; - font-family: system-ui, sans-serif; -} -.error-container { - text-align: center; - padding: 2rem; - background: #1a1a1d; - border-radius: 12px; - box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); -} -.error-title { - font-size: 2rem; - margin-bottom: 1rem; - color: #ff4e4e; -} -.error-message { - font-size: 1.2rem; - opacity: 0.8; -}