Skip to content

Commit

Permalink
Remove stray gds-consent-hash as well
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed Aug 21, 2024
1 parent 7522639 commit 80fd46b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions assets/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ window.gdsCmp = {
if (/gds-consent=\d,[01],[01],[01]/.test(document.cookie)) {
const host = document.location.host.split('.').slice(-2).join('.');
document.cookie = `gds-consent=; expires=Thu, 01 Jan 1970 00:00:00 GMT; domain=.${host}; path=/`;
document.cookie = `gds-consent-hash=; expires=Thu, 01 Jan 1970 00:00:00 GMT; domain=.${host}; path=/`;
}

ready(() => {
Expand Down
2 changes: 1 addition & 1 deletion dist/main.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => '26d6271470778475');
<?php return array('dependencies' => array(), 'version' => '1516a5a03a5ee132');
Loading

0 comments on commit 80fd46b

Please sign in to comment.