Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0130608

Browse files
Remove old honeypot function (dead code)
Removed as part of another PR, but I forgot to remove the unused function. It just checks if there is a value and returns the result of that if statement, with unnecessary logging, so clean that all up.
1 parent 620bec4 commit 0130608

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

‎form-submission-handler.js‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
11
(function() {
2-
3-
function validateHuman(honeypot) {
4-
if (honeypot) { //if hidden form filled up
5-
console.log("Robot Detected!");
6-
return true;
7-
} else {
8-
console.log("Welcome Human!");
9-
}
10-
}
11-
122
// get all data in form and return object
133
function getFormData(form) {
144
var elements = form.elements;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /