add console log for sitekey

This commit is contained in:
Jonas Leder 2021-05-24 18:19:25 +02:00
parent 6f4fd53a19
commit e4dac98119

View file

@ -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>`;
}
}