Navigation Menu

Skip to content

Commit

Permalink
ACP2E-73: The store with a pre-existing custom theme displays the mes…
Browse files Browse the repository at this point in the history
…sage "The store will not work correctly in the case when cookies are disabled."
  • Loading branch information
viktym committed Aug 30, 2021
1 parent ab815b5 commit 309e020
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
/**
* @var Magento\Framework\View\Element\Template $block
*/
Expand All @@ -11,6 +12,11 @@
<div class="cookie-status-message" id="cookie-status">
<?= $block->escapeHtml(__('The store will not work correctly in the case when cookies are disabled.')); ?>
</div>
<?php
$script = 'document.querySelector("#cookie-status").style.display = "none";';
?>
<?= /* @noEscape */ $secureRenderer->renderTag('script', ['type' => 'text/javascript'], $script, false); ?>

<script type="text/x-magento-init">
{
"*": {
Expand Down

1 comment on commit 309e020

@shunmugakumaran
Copy link

@shunmugakumaran shunmugakumaran commented on 309e020 Jan 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@viktym Theses changes are available in ready patches. If yes can you share it?

Please sign in to comment.