Skip to content

Commit

Permalink
Update JavaScript tag to add support for govuk-frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
ekumachidi committed Mar 25, 2024
1 parent 1cdd6ba commit 5e56994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<%= render(partial: "gtm_fallback") if gtm_enabled? %>

<%= javascript_tag nonce: true do -%>
document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');
document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' govuk-frontend-supported' : '');
<% end -%>

<%= render partial: 'shared/application/cookie_banner' %>
Expand Down

0 comments on commit 5e56994

Please sign in to comment.