templates/iframeHandler.html.twig line 1

Open in your IDE?
  1. <script>
  2.     setTimeout(function () {
  3.         if (window.location !== window.parent.location) {
  4.             window.parent.postMessage({
  5.                 location: window.location.href,
  6.                 action: 'redirect'
  7.             }, '{{ marketing_app_url }}');
  8.         }
  9.     }, 0);
  10. </script>
  11. <script>
  12.     {% if app.request is not null %}
  13.     setTimeout(function () {
  14.         if (window.location !== window.parent.location) {
  15.             window.parent.postMessage({
  16.                 location: window.location.href,
  17.                 action: 'redirect'
  18.             }, '{{ app.request.getSchemeAndHttpHost() }}');
  19.         }
  20.     }, 0);
  21.     {% endif %}
  22. </script>