@progressive-development/pd-page 0.0.25 → 0.0.27

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/PdFooter.js +7 -5
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Progressive development page helper, teaser, menu, footer.",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "PD Progressive Development",
6
- "version": "0.0.25",
6
+ "version": "0.0.27",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
package/src/PdFooter.js CHANGED
@@ -204,10 +204,12 @@ export class PdFooter extends LitElement {
204
204
  }
205
205
 
206
206
  _cookiePolicyClicked() {
207
- this.dispatchEvent("show-policy", {
208
- detail: {
209
- policy: 'cookie'
210
- }
211
- })
207
+ this.dispatchEvent(
208
+ new CustomEvent('show-policy', {
209
+ detail: {
210
+ policy: 'cookie'
211
+ }
212
+ })
213
+ );
212
214
  }
213
215
  }