How can I reload the Live Preview Iframe window using JS I tried to reload the iframe window using JS but haven't had any luck getting the lp-iframe iframe element, I was thinking I could do it using the Window.Craft object but not sure how?

setTimeout(()=&gt;{
  var iframe = document.querySelector('.lp-iframe');
  iframe.contentWindow.location.reload();
}, 5000);
All you need to do is

Craft.livePreview.updateIframe(true);


to update the Live Preview iFrame