18. Iframe way of remote
import fetch(url).then((response) =>
response.text()).then((html: string) => {
loadContentIntoFrame()
})
19. Iframe way of
remote import
const doc = document.implementation.createHTMLDocument();
doc.documentElement.innerHTML = appHTML;
const base = doc.createElement('base');
base.href = getHref();
doc.head.insertBefore(base,
doc.head.firstElementChild);
if (iframe.contentDocument && iframe.contentWindow) {
iframe.contentDocument.open();
iframe.contentDocument.write(doc.documentElement.innerHTML
);
iframe.contentDocument.close();
}
Set the base relative
to the shell