Skip to content

Commit

Permalink
Merge pull request #6 from IvoElgentos/main
Browse files Browse the repository at this point in the history
disable all consent-mode options except necessary stuff when clicking deny and remove the redirect
  • Loading branch information
WouterSteen authored Jun 18, 2024
2 parents 75cef47 + 03f7f79 commit c0f5ad7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/view/frontend/templates/cookie-banner-script.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ if (!$cookieHelper->isCookieRestrictionModeEnabled()) {

switch (mode) {
case 'deny':
for (const [key, value] of Object.entries(this.consentConfig)) {
this.consentConfig[key] = false;
}

window.location.href = this.noCookiesUrl;

break;
Expand Down

0 comments on commit c0f5ad7

Please sign in to comment.