Fix PFP not updating
This commit is contained in:
parent
9990a341c3
commit
75cdc55e0e
1 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@ var firsttimeDebounce = true
|
||||||
var spinWaiting = false
|
var spinWaiting = false
|
||||||
|
|
||||||
function resetPFP() {
|
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) {
|
function lerp(a, b, t) {
|
||||||
|
@ -243,8 +243,8 @@ function socketeer() {
|
||||||
var statusInfo = discStatuses[lanyard.discord_status]
|
var statusInfo = discStatuses[lanyard.discord_status]
|
||||||
var lastStatus = $(".statusColor")
|
var lastStatus = $(".statusColor")
|
||||||
|
|
||||||
if (lastStatus.innerHTML != statusInfo.text) {
|
if (lastStatus.text() != statusInfo.text) {
|
||||||
lastStatus.innerHTML = statusInfo.text
|
lastStatus.text(statusInfo.text)
|
||||||
lastStatus.css("color", statusInfo.color)
|
lastStatus.css("color", statusInfo.color)
|
||||||
|
|
||||||
pfp.css("borderColor", statusInfo.color)
|
pfp.css("borderColor", statusInfo.color)
|
||||||
|
|
Loading…
Reference in a new issue