Skip to content

Commit

Permalink
add script for adding necessarily class to the body for govuk-fronten…
Browse files Browse the repository at this point in the history
…d to work
  • Loading branch information
patrickpatrickpatrick committed Nov 6, 2023
1 parent a33fbd5 commit 13cc635
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
<%= javascript_tag nonce: true do -%>
document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');
<% end -%>
<%= javascript_tag nonce: true, type: "module" do -%>
document.body.className = ((document.body.className) ? document.body.className + ' govuk-frontend-supported' : 'govuk-frontend-supported');
<% end -%>
<%= yield :body %>

<%= javascript_include_tag "component_guide/application" %>
Expand Down

0 comments on commit 13cc635

Please sign in to comment.