add timestamp to url
All checks were successful
ci/woodpecker/push/netlify Pipeline was successful

This commit is contained in:
Adora Laura Kalb 2023-08-28 13:48:06 +02:00
parent bbd794d44e
commit 11862d13b6
Signed by: adoralaura
GPG key ID: 7A4552166FC8C056

View file

@ -17,7 +17,7 @@ async function PopulatePage(reload) {
data.forEach(server => { data.forEach(server => {
let clone = template.cloneNode(true); let clone = template.cloneNode(true);
let url = badgeurl.replace("##", server.id ) let url = badgeurl.replace("##", server.id ) + "&" + String(Date.now())
clone.querySelector("#game-name").innerHTML = server.displayname clone.querySelector("#game-name").innerHTML = server.displayname
clone.querySelector("#game-badge").src = url clone.querySelector("#game-badge").src = url
clone.querySelector("#game-url").innerHTML = server.serverurl clone.querySelector("#game-url").innerHTML = server.serverurl