Skip to content
Snippets Groups Projects
Commit e4dac981 authored by Jonas Leder's avatar Jonas Leder
Browse files

add console log for sitekey

parent 6f4fd53a
Branches
No related tags found
Loading
Pipeline #918 passed
...@@ -7,6 +7,7 @@ class contactMailButton extends HTMLElement { ...@@ -7,6 +7,7 @@ class contactMailButton extends HTMLElement {
async addButton(){ async addButton(){
let sitekey = await (await fetch("/API/config.php?name=sitekey")).text(); 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>`; this.innerHTML = `E-Mail: <button id="emailButton" class="h-captcha" data-sitekey="${sitekey}" data-callback="onSubmit">laden</button><br>`;
} }
} }
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment