govuk_publishing_components 27.10.1 → 27.10.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5dee5bb8329667345e4d430b7a49b863b5e68ebfb9398388ee7920b6beb4a3aa
4
- data.tar.gz: 2cec1ec99cea9a101a6066f3744d0b2faf37b2e21b3a560ef823f5fb0ee75398
3
+ metadata.gz: 7cf2ebcbfd20fc146d07f7edcacf06c2c0dec708408c27217ff04e9475bbedc1
4
+ data.tar.gz: b03ddc5f4e26590d295a75aaca6f97f18659e3ceeec6a7714d9fe093ea617eb9
5
5
  SHA512:
6
- metadata.gz: 776095b867336f69a760f40f8e0a3f05de2f85e2c7f8dd078ad9cf1a45d5f1962c32d69dff75963e61c1b1481c0f9a7a010668ce7e73ca63e981bb9053b3f17b
7
- data.tar.gz: 8b49fa796edac5d3fe46fc76db93687baacb45074af825c94d6f81fdf70ead9273116dce5630ccbac424e8619b6c878dc82512d32ebd24392f796dcf79c592c1
6
+ metadata.gz: 94559c60b8dd1124dd1096ec430a87f6c601efcb6a9f02af1ba85f705d1dd22971d2626f1b46627152a2c4e75b832c9a88ca664eac84a3534297688ab9ff2469
7
+ data.tar.gz: 534dc11dadc43079d31f952ce41a51615209367cbd48850f1f02b7f1af12402d06aca99c586fcdeb5464645cc226a8713f13b850eb9409677ac931b733cb60fc
@@ -14,12 +14,12 @@
14
14
  // If engaged and rejected, append only ?cookie-consent=reject
15
15
  // If engaged and accepted usage, append ?_ga=clientid if available and cookie-consent=accept
16
16
 
17
- if (cookieBannerEngaged === 'false') {
17
+ if (cookieBannerEngaged !== 'true') {
18
18
  this.decorate(element, 'cookie_consent=not-engaged')
19
19
  return
20
20
  }
21
21
  var cookieConsent = GOVUK.getConsentCookie()
22
- if (cookieConsent.usage === false) {
22
+ if (cookieConsent && cookieConsent.usage === false) {
23
23
  this.decorate(element, 'cookie_consent=reject')
24
24
  return
25
25
  }
@@ -96,6 +96,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
96
96
  this.$module.showConfirmationMessage()
97
97
  this.$module.cookieBannerConfirmationMessage.focus()
98
98
  window.GOVUK.cookie('cookies_preferences_set', 'true', { days: 365 })
99
+ window.GOVUK.setDefaultConsentCookie()
99
100
  }
100
101
 
101
102
  CookieBanner.prototype.showConfirmationMessage = function () {