Skip to content

Commit c0f5ad7

Browse files
authored
Merge pull request #6 from IvoElgentos/main
disable all consent-mode options except necessary stuff when clicking deny and remove the redirect
2 parents 75cef47 + 03f7f79 commit c0f5ad7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/view/frontend/templates/cookie-banner-script.phtml

+4
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ if (!$cookieHelper->isCookieRestrictionModeEnabled()) {
9797

9898
switch (mode) {
9999
case 'deny':
100+
for (const [key, value] of Object.entries(this.consentConfig)) {
101+
this.consentConfig[key] = false;
102+
}
103+
100104
window.location.href = this.noCookiesUrl;
101105

102106
break;

0 commit comments

Comments
 (0)