Skip to content

Commit

Permalink
Merge pull request #761 from UKGovernmentBEIS/MSPSDS-6_js_fallback
Browse files Browse the repository at this point in the history
MSPSDS-6: Remove .js-enabled if JavaScript isn't successfully loaded
  • Loading branch information
broder authored Mar 15, 2019
2 parents d7752b3 + 5e4b9bd commit 7637cc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cosmetics-web/app/views/layouts/_footer.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ footer.govuk-footer[role="contentinfo"]
| © Crown copyright

javascript:
if (typeof window.GOVUKFrontend === 'undefined') document.body.className = document.body.className.replace('js-enabled', '')
window.GOVUKFrontend.initAll()
1 change: 1 addition & 0 deletions mspsds-web/app/views/layouts/application.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,5 @@ html.govuk-template.app-html-class[lang="en"]
| © Crown copyright

javascript:
if (typeof window.GOVUKFrontend === 'undefined') document.body.className = document.body.className.replace('js-enabled', '')
window.GOVUKFrontend.initAll()

0 comments on commit 7637cc2

Please sign in to comment.