add check for unnecessary setBio endpoint call
This commit is contained in:
parent
5a5e74fd16
commit
bbe614b2ca
@ -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})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user