add check for unnecessary setBio endpoint call
This commit is contained in:
@@ -104,8 +104,11 @@ async function bioChanger() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function sendBio(str) {
|
async function sendBio(str) {
|
||||||
|
if(document.getElementById("bio").placeholder != str) {
|
||||||
|
document.getElementById("bio").placeholder = str
|
||||||
return await post("/api/setBio",{"Bio":str})
|
return await post("/api/setBio",{"Bio":str})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
async function changePW() {
|
async function changePW() {
|
||||||
|
|||||||
Reference in New Issue
Block a user