We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 292de1d commit f4e0042Copy full SHA for f4e0042
app/code/Magento/Cookie/View/frontend/templates/require_cookie.phtml
@@ -5,11 +5,10 @@
5
*/
6
?>
7
<?php /** @var \Magento\Cookie\Block\RequireCookie $block */ ?>
8
-<script>
9
-require([
10
- "jquery",
11
- "mage/mage"
12
-], function($){
13
- $('body').mage('requireCookie', <?php echo $block->getScriptOptions(); ?>);
14
-});
15
-</script>
+<script type="text/x-magento-init">
+ {
+ "body": {
+ "requireCookie": <?php echo $block->getScriptOptions(); ?>
+ }
+</script>
0 commit comments