<div id="desktop-notifications__initializer"
     hidden
     tal:define="
       portal_url here/plone_portal_state/portal_url;
     "
     tal:condition="view/available"
>
  <tal:comment condition="nothing">
    Integrate pattern to listen and invoke browser notifications.
  </tal:comment>
  <div class="pat-push"
       data-pat-push="
          push-id: browser_new_notification;
          url: ${portal_url}/@@browser_new_notification;
          mode: desktop-notification;
      "
  ></div>
  <div class="pat-push"
       data-pat-push="
          push-id: browser_incoming_message;
          url: ${portal_url}/@@browser_incoming_message;
          mode: desktop-notification;
      "
  ></div>
</div>
