Skip to content

Commit

Permalink
Update js-enabled script
Browse files Browse the repository at this point in the history
This is necessary to support the upgrade.
  • Loading branch information
thomasleese committed Feb 27, 2024
1 parent 7df2561 commit fc084a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
</head>

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

<%= govuk_skip_link %>

Expand Down

0 comments on commit fc084a8

Please sign in to comment.