refactor(rgaa/contact): inject invisible_captcha styles into head instead of div
This commit is contained in:
parent
aab3e3a4be
commit
3148266b49
2 changed files with 3 additions and 1 deletions
|
@ -34,6 +34,8 @@
|
||||||
= vite_stylesheet_tag 'application', media: 'all'
|
= vite_stylesheet_tag 'application', media: 'all'
|
||||||
= stylesheet_link_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 }
|
%body{ id: content_for(:page_id), class: browser.platform.ios? ? 'ios' : nil }
|
||||||
.page-wrapper
|
.page-wrapper
|
||||||
= render partial: "layouts/outdated_browser_banner"
|
= render partial: "layouts/outdated_browser_banner"
|
||||||
|
|
|
@ -3,7 +3,7 @@ InvisibleCaptcha.setup do |config|
|
||||||
# config.visual_honeypots = false
|
# config.visual_honeypots = false
|
||||||
# config.timestamp_threshold = 2
|
# config.timestamp_threshold = 2
|
||||||
config.timestamp_enabled = !Rails.env.test?
|
config.timestamp_enabled = !Rails.env.test?
|
||||||
# config.injectable_styles = false
|
config.injectable_styles = true
|
||||||
config.spinner_enabled = !Rails.env.test?
|
config.spinner_enabled = !Rails.env.test?
|
||||||
|
|
||||||
# Leave these unset if you want to use I18n (see below)
|
# Leave these unset if you want to use I18n (see below)
|
||||||
|
|
Loading…
Reference in a new issue