mirror of
https://github.com/a2nt/webpack-bootstrap-ui-kit.git
synced 2024-10-22 11:05:45 +02:00
FIX: captcha and headers
This commit is contained in:
parent
a5f1509440
commit
ef2bb5b795
@ -1,6 +1,6 @@
|
||||
{
|
||||
"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.",
|
||||
"author": "Tony Air <tony@twma.pro>",
|
||||
"license": "BSD-2-Clause",
|
||||
|
@ -19,6 +19,11 @@ const CaptchaUI = ((window) => {
|
||||
const fields = document.querySelectorAll(`.${NAME}, .g-recaptcha`)
|
||||
const grecaptcha = window.grecaptcha
|
||||
|
||||
if (typeof window.grecaptcha.render !== 'function') {
|
||||
console.log(`${NAME}: no render function`);
|
||||
return
|
||||
}
|
||||
|
||||
fields.forEach((el, i) => {
|
||||
if (el.dataset.widgetid || el.innerHTML !== '') {
|
||||
// already initialized
|
||||
|
@ -24,7 +24,6 @@ h6,
|
||||
.h5,
|
||||
.h6 {
|
||||
color: $headings-color;
|
||||
line-height: 1.8em;
|
||||
}
|
||||
|
||||
a {
|
||||
|
Loading…
Reference in New Issue
Block a user