refined check for unnecessary setBio calls
This commit is contained in:
parent
bbe614b2ca
commit
6f3ad7a617
@ -104,7 +104,7 @@ async function bioChanger() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function sendBio(str) {
|
async function sendBio(str) {
|
||||||
if(document.getElementById("bio").placeholder != str) {
|
if(document.getElementById("bio").placeholder != str && str != "") {
|
||||||
document.getElementById("bio").placeholder = str
|
document.getElementById("bio").placeholder = str
|
||||||
return await post("/api/setBio",{"Bio":str})
|
return await post("/api/setBio",{"Bio":str})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user