Skip to content

Commit 9d645b0

Browse files
torhoehnmage2pratik
authored andcommitted
hide cookie notice instead of reloading site
1 parent 9317c4f commit 9d645b0

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
@@ -25,7 +25,7 @@ define([
2525
});
2626

2727
if ($.mage.cookies.get(this.options.cookieName)) {
28-
window.location.reload();
28+
this.element.hide();
2929
} else {
3030
window.location.href = this.options.noCookiesUrl;
3131
}

0 commit comments

Comments
 (0)