Update visual style and sandbox properly
This commit is contained in:
parent
623f2e7613
commit
b57fff5739
7 changed files with 140 additions and 26 deletions
|
@ -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";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue