From ef2bb5b7952f47bbc36e93f8b945e133720cc1ae Mon Sep 17 00:00:00 2001 From: Tony Air Date: Tue, 10 Oct 2023 20:03:01 +0200 Subject: [PATCH] FIX: captcha and headers --- package.json | 2 +- src/js/ui/captcha.js | 5 +++++ src/scss/types/editor.scss | 1 - 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 76970c3..20921ae 100644 --- a/package.json +++ b/package.json @@ -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 ", "license": "BSD-2-Clause", diff --git a/src/js/ui/captcha.js b/src/js/ui/captcha.js index be0e03e..5bff073 100644 --- a/src/js/ui/captcha.js +++ b/src/js/ui/captcha.js @@ -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 diff --git a/src/scss/types/editor.scss b/src/scss/types/editor.scss index 4c8ab7d..e1bdce8 100755 --- a/src/scss/types/editor.scss +++ b/src/scss/types/editor.scss @@ -24,7 +24,6 @@ h6, .h5, .h6 { color: $headings-color; - line-height: 1.8em; } a {