From 3148266b496e5e4f8083babde8bc71696161bdd5 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Tue, 30 Aug 2022 15:39:01 +0200 Subject: [PATCH] refactor(rgaa/contact): inject invisible_captcha styles into head instead of div --- app/views/layouts/application.html.haml | 2 ++ config/initializers/invisible_captcha.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 098ace1a6..e5c522323 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -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" diff --git a/config/initializers/invisible_captcha.rb b/config/initializers/invisible_captcha.rb index 141f247fb..939f90d16 100644 --- a/config/initializers/invisible_captcha.rb +++ b/config/initializers/invisible_captcha.rb @@ -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)