Skip to content

Commit 87962d6

Browse files
committed
hide cookie notice instead of reloading site
1 parent f01227c commit 87962d6

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)