From e4dac98119a4d1cb995d731f5dbbcd377913b48b Mon Sep 17 00:00:00 2001 From: Jonas Leder <git@jonasled.de> Date: Mon, 24 May 2021 18:19:25 +0200 Subject: [PATCH] add console log for sitekey --- js/customElements/contactMailButton.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/customElements/contactMailButton.js b/js/customElements/contactMailButton.js index ce36339..6045f0f 100644 --- a/js/customElements/contactMailButton.js +++ b/js/customElements/contactMailButton.js @@ -7,6 +7,7 @@ class contactMailButton extends HTMLElement { async addButton(){ let sitekey = await (await fetch("/API/config.php?name=sitekey")).text(); + console.log(sitekey); this.innerHTML = `E-Mail: <button id="emailButton" class="h-captcha" data-sitekey="${sitekey}" data-callback="onSubmit">laden</button><br>`; } } -- GitLab