From fc084a8649bee8896472ac81202bf96911f3969f Mon Sep 17 00:00:00 2001 From: Thomas Leese Date: Tue, 12 Dec 2023 09:23:59 +0000 Subject: [PATCH] Update js-enabled script This is necessary to support the upgrade. --- app/views/layouts/application.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index d1426b0fa8..861d271b63 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -22,9 +22,9 @@ - <%= 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 %>