Skip to content

Commit

Permalink
Feat: Submit consent to API also on settings change #CCM-59
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Jan 31, 2022
1 parent 8acb0cd commit ffe4963
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/LmcCookieConsentManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ const LmcCookieConsentManager: CookieConsentManager = (serviceName, args) => {
? onFirstAcceptOnlyNecessary(cookie, cookieConsent)
: onFirstAcceptAll(cookie, cookieConsent);
},
onChange: () => {
submitConsent(consentCollectorApiUrl, cookieConsent);
},
languages,
// override default config if necessary
...config,
Expand Down

0 comments on commit ffe4963

Please sign in to comment.