Connect can be easily embedded in your web application. Connect should be embedded in a scrollable iframe. We recommend a minimum size of 600px wide and 800px tall.
Connect embedded in a popup-style iframe.
Connect will broadcast an event using postMessage with a body of connect_exit when you should close the modal. Here’s an example listener:
Copy
function handleMessage(event) { if (event.data === "connect_exit") { // close modal here } }window.addEventListener("message", handleMessage);