Skip to content

Commit 664338e

Browse files
ENGCOM-2403: hide cookie notice instead of reloading site #16890
- Merge Pull Request #16890 from torhoehn/magento2:hide-cookie-banner - Merged commits: 1. ee24207
2 parents cc4b174 + ee24207 commit 664338e

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Cookie/view/frontend/web/js

1 file changed

+1
-1
lines changed

app/code/Magento/Cookie/view/frontend/web/js/notices.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ define([
2929
});
3030

3131
if ($.mage.cookies.get(this.options.cookieName)) {
32-
window.location.reload();
32+
this.element.hide();
3333
} else {
3434
window.location.href = this.options.noCookiesUrl;
3535
}

0 commit comments

Comments
 (0)