Skip to content

Commit

Permalink
6.15.1
Browse files Browse the repository at this point in the history
  • Loading branch information
piano-analytics committed Oct 11, 2024
1 parent 18abf2d commit a3eb8aa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Changelog
## 6.15.1
### Fixes
- [browser] Fix a specific case when consent is disabled

## 6.15.0
### New
- [browser] New AV Insights method (`media.playbackKill`) to technically stop a playback session
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "piano-analytics-js",
"description": "JavaScript library for Piano Analytics",
"version": "6.15.0",
"version": "6.15.1",
"main": "dist/browserless/piano-analytics.cjs.js",
"module": "dist/browserless/piano-analytics.esm.js",
"browser": "dist/browser/piano-analytics.umd.js",
Expand Down
3 changes: 2 additions & 1 deletion src/business/privacy/dl-privacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ function DlPrivacy(pa) {
};

this.isPAConsentDisabled = function () {
return typeof dataLayer.get('consent')['PA'] === 'undefined';
const _consent = dataLayer.get('consent');
return !(_consent && _consent['PA']);
};
this.init = function () {
this.consentItems = getConsentItems();
Expand Down
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
],
'storageVisitor': 'pa_vid',
'storageUser': 'pa_user',
'version': '6.15.0',
'version': '6.15.1',
'minHeartbeat': 5,
'minBufferingHeartbeat': 1,
'queueVarName': '_paq',
Expand Down

0 comments on commit a3eb8aa

Please sign in to comment.