refactor(rgaa/contact): inject invisible_captcha styles into head instead of div

This commit is contained in:
Colin Darie 2022-08-30 15:39:01 +02:00
parent aab3e3a4be
commit 3148266b49
2 changed files with 3 additions and 1 deletions

View file

@ -34,6 +34,8 @@
= vite_stylesheet_tag 'application', media: 'all'
= stylesheet_link_tag 'application', media: 'all'
= yield(:invisible_captcha_styles)
%body{ id: content_for(:page_id), class: browser.platform.ios? ? 'ios' : nil }
.page-wrapper
= render partial: "layouts/outdated_browser_banner"

View file

@ -3,7 +3,7 @@ InvisibleCaptcha.setup do |config|
# config.visual_honeypots = false
# config.timestamp_threshold = 2
config.timestamp_enabled = !Rails.env.test?
# config.injectable_styles = false
config.injectable_styles = true
config.spinner_enabled = !Rails.env.test?
# Leave these unset if you want to use I18n (see below)