Skip to content

Commit

Permalink
Remove extraneous console logging
Browse files Browse the repository at this point in the history
Cleans up console output. Manual logging can
be added by users themselves as desired.
  • Loading branch information
mckennapsean committed Jun 22, 2019
1 parent ae27fbc commit 620bec4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions form-submission-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
formData.formGoogleSend
= form.dataset.email || ""; // no email by default

console.log(formData);
return {data: formData, honeypot};
}

Expand All @@ -79,8 +78,6 @@
// xhr.withCredentials = true;
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.onreadystatechange = function() {
console.log(xhr.status, xhr.statusText);
console.log(xhr.responseText);
if (xhr.readyState === 4 && xhr.status === 200) {
form.reset();
var formElements = form.querySelector(".form-elements")
Expand All @@ -101,7 +98,6 @@
}

function loaded() {
console.log("Contact form submission handler loaded successfully.");
// bind to the submit event of our form
var forms = document.querySelectorAll("form.gform");
for (var i = 0; i < forms.length; i++) {
Expand Down

0 comments on commit 620bec4

Please sign in to comment.