Skip to content

Commit

Permalink
Add an event when the consent is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauriC committed Dec 9, 2023
1 parent b895b08 commit 79f4956
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tarteaucitron.js
Original file line number Diff line number Diff line change
Expand Up @@ -1661,6 +1661,8 @@ var tarteaucitron = {

d.setTime(expireTime);
document.cookie = value + '; expires=' + d.toGMTString() + '; path=/' + domain + secure + '; samesite=lax';

tarteaucitron.sendEvent('tac.consent_updated');
},
"read": function () {
"use strict";
Expand Down
2 changes: 1 addition & 1 deletion tarteaucitron.min.js

Large diffs are not rendered by default.

0 comments on commit 79f4956

Please sign in to comment.