<?php
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Advanced Product Reviews Base for Magento 2
 */ /** @var $block \Amasty\AdvancedReview\Block\Comment\JsInit */ ?>

<script type="text/x-magento-init" data-amreview-js="js-initialize">
        {
            "*": {
                "Amasty_AdvancedReview/js/comments/handler": {
                    "updateUrl": "<?= $block->escapeUrl($block->getUpdateUrl()) ?>",
                    "submitUrl": "<?= $block->escapeUrl($block->getSubmitUrl()) ?>"
                }
            }
        }
</script>
<script>
    // Magento 2.2.3 fix
    require(['mage/apply/main'], function (mage) {
        mage.apply('data-amreview-js="js-initialize"');
    });
</script>
