Skip to content

Commit

Permalink
Style: Fix formatting according to updated prettier-config
Browse files Browse the repository at this point in the history
  • Loading branch information
literat authored and OndraM committed Nov 7, 2021
1 parent eb174bc commit a70979a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/LmcCookieConsentManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,15 @@ const LmcCookieConsentManager = (args) => {
},
onAccept: (cookie) => {
const givenLevels = cookieConsent.get('level');
const acceptedOnlyNecessary =
givenLevels.length === 1 && givenLevels[0] === 'necessary';
const acceptedOnlyNecessary = givenLevels.length === 1 && givenLevels[0] === 'necessary';

window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'CookieConsent-update',
'CookieConsent.necessary': cookie.level.includes('necessary'),
'CookieConsent.analytics': cookie.level.includes('analytics'),
'CookieConsent.functionality': cookie.level.includes('functionality'),
'CookieConsent.personalization':
cookie.level.includes('personalization'),
'CookieConsent.personalization': cookie.level.includes('personalization'),
'CookieConsent.revision': cookie.revision,
});

Expand Down

0 comments on commit a70979a

Please sign in to comment.