app/views/layouts/good_job/application.html.erb in good_job-3.28.0 vs app/views/layouts/good_job/application.html.erb in good_job-3.28.1

- old
+ new

@@ -10,16 +10,16 @@ <%# Bootstrap Color Modes "It is suggested to include the JavaScript at the top of your page to reduce potential screen flickering during reloading of your site." https://getbootstrap.com/docs/5.3/customize/color-modes/#javascript %> - <%= tag.script "", nonce: content_security_policy_nonce do %> + <script nonce="<%= content_security_policy_nonce %>"> let theme = localStorage.getItem('good_job-theme'); if (!["light", "dark"].includes(theme)) { theme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'; } document.documentElement.setAttribute('data-bs-theme', theme); - <% end %> + </script> <%# Do not use asset tag helpers to avoid paths being overriden by config.asset_host %> <%= tag.link rel: "stylesheet", href: frontend_static_path(:bootstrap, format: :css, v: GoodJob::VERSION, locale: nil), nonce: content_security_policy_nonce %> <%= tag.link rel: "stylesheet", href: frontend_static_path(:style, format: :css, v: GoodJob::VERSION, locale: nil), nonce: content_security_policy_nonce %> <%= tag.script "", src: frontend_static_path(:bootstrap, format: :js, v: GoodJob::VERSION, locale: nil), nonce: content_security_policy_nonce %>