This commit is contained in:
nin0dev 2024-06-02 06:50:59 -04:00 committed by GitHub
parent 56eb9e3f0d
commit ef815cc443
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 2 additions and 2 deletions

BIN
game.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
game.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

View file

@ -31,7 +31,7 @@
</div>
<br/>
<div id="presence" style="display: none; margin-bottom: 12px;">
<img src="game.png" id="presence-icon">
<img src="game.ico" id="presence-icon">
<p id="presence-content"></p>
</div>
<fieldset>

View file

@ -53,7 +53,7 @@ function onUpdate(data) {
});
document.getElementById("presence").style.display = content == "" ? "none": "flex"
document.getElementById("presence-content").innerText = content
document.getElementById("presence-icon").src = listening ? "music.png" : "game.png"
document.getElementById("presence-icon").src = listening ? "music.ico" : "game.ico"
}
LanyardWrapper.connectWebSocket("886685857560539176", onUpdate)
.catch(err => {

BIN
music.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
music.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB