Skip to content

Commit 439ece6

Browse files
committed
Removed unnecessary console.log
1 parent 13655d6 commit 439ece6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{#-
22
This file was automatically generated - do not edit
33
-#}
4-
<script>var consent=__md_get("__consent");if(consent)for(var input of document.forms.consent.elements)input.name&&(input.checked=consent[input.name]||!1);else"file:"!==location.protocol&&setTimeout(function(){document.querySelector("[data-md-component=consent]").hidden=!1},250);var action,form=document.forms.consent;for(action of["submit","reset"])form.addEventListener(action,function(e){if(e.preventDefault(),"reset"===e.type)for(var n of document.forms.consent.elements)n.name&&(n.checked=!1);console.log(new FormData(form)),__md_set("__consent",Object.fromEntries(Array.from(new FormData(form).keys()).map(function(e){return[e,!0]}))),location.hash="",location.reload()})</script>
4+
<script>var consent=__md_get("__consent");if(consent)for(var input of document.forms.consent.elements)input.name&&(input.checked=consent[input.name]||!1);else"file:"!==location.protocol&&setTimeout(function(){document.querySelector("[data-md-component=consent]").hidden=!1},250);var action,form=document.forms.consent;for(action of["submit","reset"])form.addEventListener(action,function(e){if(e.preventDefault(),"reset"===e.type)for(var n of document.forms.consent.elements)n.name&&(n.checked=!1);__md_set("__consent",Object.fromEntries(Array.from(new FormData(form).keys()).map(function(e){return[e,!0]}))),location.hash="",location.reload()})</script>

src/partials/javascripts/consent.html

-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
input.checked = false
5050

5151
/* Grab and serialize form data */
52-
console.log(new FormData(form))
5352
__md_set("__consent", Object.fromEntries(
5453
Array.from(new FormData(form).keys())
5554
.map(function(key) { return [key, true] })

0 commit comments

Comments
 (0)