@brandocms/jupiter 3.51.0 → 3.51.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brandocms/jupiter",
3
- "version": "3.51.0",
3
+ "version": "3.51.1",
4
4
  "description": "Frontend helpers.",
5
5
  "author": "Univers/Twined",
6
6
  "license": "UNLICENSED",
@@ -120,9 +120,11 @@ export default class Cookies {
120
120
  this.btn.addEventListener('click', () => {
121
121
  this.opts.onAccept(this)
122
122
  })
123
- this.btnRefuse.addEventListener('click', () => {
124
- this.opts.onRefuse(this)
125
- })
123
+ if (this.btnRefuse) {
124
+ this.btnRefuse.addEventListener('click', () => {
125
+ this.opts.onRefuse(this)
126
+ })
127
+ }
126
128
  }
127
129
 
128
130
  getCookie(sKey) {