mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
Fix function name typo
This commit is contained in:
@@ -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."));
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user