Update visual style and sandbox properly

This commit is contained in:
Travis Ralston 2021-07-16 15:55:07 -06:00
parent 623f2e7613
commit b57fff5739
7 changed files with 140 additions and 26 deletions

View file

@ -1,6 +1,13 @@
let hasCalled = false;
function remoteRender(event) {
const data = event.data;
// If we're handling secondary calls, start from scratch
if (hasCalled) {
document.body.replaceWith(document.createElement("BODY"));
}
hasCalled = true;
const img = document.createElement("span"); // we'll mask it as an image
img.id = "img";