Fix function name typo

This commit is contained in:
Thomas Lynch
2023-12-14 23:28:12 +11:00
parent 63b738b9b5
commit 7fc5efc82b
4 changed files with 6 additions and 157 deletions

View File

@@ -103,7 +103,7 @@ function postResponse(powResponse, captchaResponse) {
}).then((res) => {
const s = res.status;
if (s >= 400 && s < 500) {
clearCookiesForDomain(location.hostname);
clearCookiesForDomains(location.hostname);
return insertError(__("Server rejected your submission."));
} else if (s >= 500) {
return insertError(__("Server encountered an error."));
@@ -111,7 +111,7 @@ function postResponse(powResponse, captchaResponse) {
window.localStorage.setItem("_basedflare-redirect", Math.random());
finishRedirect();
}).catch(() => {
clearCookiesForDomain(location.hostname);
clearCookiesForDomains(location.hostname);
insertError(__("Failed to send request to server."));
});
}