govuk_publishing_components 27.10.4 → 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: 5c285efd48df213555a9afafac32940f67b475830d61fd04d184ed9927019aed
4
- data.tar.gz: b51c92356aa12905d44a798c40f603fca665c940545569ab35c1565d9041b5d4
3
+ metadata.gz: 7cf2ebcbfd20fc146d07f7edcacf06c2c0dec708408c27217ff04e9475bbedc1
4
+ data.tar.gz: b03ddc5f4e26590d295a75aaca6f97f18659e3ceeec6a7714d9fe093ea617eb9
5
5
  SHA512:
6
- metadata.gz: 01a744cc980fead4cf18e15708f13260d8c3d0fe79aa5df84e8ed21d7bb2e29d2a9c472c750a8cf4a7b5d3f19c2765b35b2a58f878be4321a43111e50efa9ad3
7
- data.tar.gz: c1b5398df98f3f57c4e1c4708499981d9630c01ac6e70942c36927e99c4842b1ef41fbb9d9a8e69bdbe9454ec18c5371172cc9b4ac015611b917ee2fbcff35c1
6
+ metadata.gz: 94559c60b8dd1124dd1096ec430a87f6c601efcb6a9f02af1ba85f705d1dd22971d2626f1b46627152a2c4e75b832c9a88ca664eac84a3534297688ab9ff2469
7
+ data.tar.gz: 534dc11dadc43079d31f952ce41a51615209367cbd48850f1f02b7f1af12402d06aca99c586fcdeb5464645cc226a8713f13b850eb9409677ac931b733cb60fc
@@ -19,7 +19,7 @@
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 () {
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "27.10.4".freeze
2
+ VERSION = "27.10.5".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 27.10.4
4
+ version: 27.10.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev