FIX: captcha and headers

This commit is contained in:
Tony Air 2023-10-10 20:03:01 +02:00
parent a5f1509440
commit ef2bb5b795
3 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate-react", "name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate-react",
"version": "5.0.4", "version": "5.0.5",
"description": "This UI Kit allows you to build Bootstrap 5 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.", "description": "This UI Kit allows you to build Bootstrap 5 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.",
"author": "Tony Air <tony@twma.pro>", "author": "Tony Air <tony@twma.pro>",
"license": "BSD-2-Clause", "license": "BSD-2-Clause",

View File

@ -19,6 +19,11 @@ const CaptchaUI = ((window) => {
const fields = document.querySelectorAll(`.${NAME}, .g-recaptcha`) const fields = document.querySelectorAll(`.${NAME}, .g-recaptcha`)
const grecaptcha = window.grecaptcha const grecaptcha = window.grecaptcha
if (typeof window.grecaptcha.render !== 'function') {
console.log(`${NAME}: no render function`);
return
}
fields.forEach((el, i) => { fields.forEach((el, i) => {
if (el.dataset.widgetid || el.innerHTML !== '') { if (el.dataset.widgetid || el.innerHTML !== '') {
// already initialized // already initialized

View File

@ -24,7 +24,6 @@ h6,
.h5, .h5,
.h6 { .h6 {
color: $headings-color; color: $headings-color;
line-height: 1.8em;
} }
a { a {