added account-based ratelimiting
This commit is contained in:
+2
-4
@@ -16,16 +16,14 @@ async function bioChanger() {
|
||||
document.getElementById("bio").disabled = !document.getElementById("bio").disabled
|
||||
document.getElementById("changeBio").innerText = (document.getElementById("bio").disabled && "Change Bio") || "Submit"
|
||||
if(document.getElementById("bio").disabled) {
|
||||
let response = await sendBio(document.getElementById("bio").value)
|
||||
console.log(response);
|
||||
document.querySelector('style').innerHTML = '::placeholder {color: white;} #bio {border: 0px solid black; color:white;}'
|
||||
}
|
||||
else
|
||||
{
|
||||
document.querySelector('style').innerHTML = '::placeholder {color: white;} #bio {border: 2px solid gray; color:white;}'
|
||||
}
|
||||
if(document.getElementById("bio").disabled) {
|
||||
let response = await sendBio(document.getElementById("bio").value)
|
||||
console.log(response);
|
||||
}
|
||||
}
|
||||
|
||||
async function sendBio(str) {
|
||||
|
||||
Reference in New Issue
Block a user