Skip to content

Commit

Permalink
Merge pull request #256 from digital-land/bug/hideCookieMessage
Browse files Browse the repository at this point in the history
make sure hideCookieConfirmation is correctly assigned to the window object
  • Loading branch information
GeorgeGoodall authored Apr 26, 2024
2 parents e631662 + d876241 commit 3ff1b83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/templates/partials/cookie-banner.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{% from 'govuk_frontend_jinja/components/cookie-banner/macro.html' import govukCookieBanner %}

<script type="module">
import {acceptCookies} from "{{ cacheBust(assetPath | default('/assets') + '/javascripts/cookies.js') }}";
import {acceptCookies, hideCookieBanner, hideCookieConfirmation} from "{{ cacheBust(assetPath | default('/assets') + '/javascripts/cookies.js') }}";

window.acceptCookies = acceptCookies;
window.hideCookieBanner = hideCookieBanner;
window.hideCookieConfirmation = hideCookieConfirmation
</script>

{% set html %}
Expand Down

0 comments on commit 3ff1b83

Please sign in to comment.