Skip to content

Commit

Permalink
Style: Reformat code by prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Nov 26, 2021
1 parent d51f2da commit b13af7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/LmcCookieConsentManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ const LmcCookieConsentManager = (serviceName, args) => {
: onFirstAcceptAll(cookie, cookieConsent);
}

acceptedOnlyNecessary
? onAcceptOnlyNecessary(cookie, cookieConsent)
: onAcceptAll(cookie, cookieConsent);
acceptedOnlyNecessary ? onAcceptOnlyNecessary(cookie, cookieConsent) : onAcceptAll(cookie, cookieConsent);
},
languages,
// override default config if necessary
Expand Down
4 changes: 1 addition & 3 deletions src/consentCollector.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ const buildPayload = (cookieConsent, acceptedOnlyNecessary) => {
const acceptedCategories = cookieConsent.get('level');
// TODO: read actual categories once following is implemented in vanilla-cookieconsent:
// https://github.com/orestbida/cookieconsent/discussions/90#discussioncomment-1466886
const rejectedCategories = acceptedOnlyNecessary
? ['ad', 'analytics', 'functionality', 'personalization']
: [];
const rejectedCategories = acceptedOnlyNecessary ? ['ad', 'analytics', 'functionality', 'personalization'] : [];

return {
data: {
Expand Down

0 comments on commit b13af7b

Please sign in to comment.