add check for unnecessary setBio endpoint call

This commit is contained in:
Mystikfluu 2022-07-09 18:23:31 +02:00
parent 5a5e74fd16
commit bbe614b2ca

View File

@ -104,7 +104,10 @@ async function bioChanger() {
}
async function sendBio(str) {
return await post("/api/setBio",{"Bio":str})
if(document.getElementById("bio").placeholder != str) {
document.getElementById("bio").placeholder = str
return await post("/api/setBio",{"Bio":str})
}
}