From 75cdc55e0e9d8fe47c59fbfb752334012f1c6851 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Mon, 19 Aug 2024 02:08:07 -0500 Subject: [PATCH] Fix PFP not updating --- static/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/main.js b/static/main.js index d335b40..dce14ef 100644 --- a/static/main.js +++ b/static/main.js @@ -54,7 +54,7 @@ var firsttimeDebounce = true var spinWaiting = false function resetPFP() { - pfp.src = "https://api.violets-purgatory.dev/v1/pfp?" + new Date().getTime() + $(".pfp").attr("src", "https://api.violets-purgatory.dev/v1/pfp?" + new Date().getTime()) } function lerp(a, b, t) { @@ -243,8 +243,8 @@ function socketeer() { var statusInfo = discStatuses[lanyard.discord_status] var lastStatus = $(".statusColor") - if (lastStatus.innerHTML != statusInfo.text) { - lastStatus.innerHTML = statusInfo.text + if (lastStatus.text() != statusInfo.text) { + lastStatus.text(statusInfo.text) lastStatus.css("color", statusInfo.color) pfp.css("borderColor", statusInfo.color)