automatically resize sandbox iframes
This commit is contained in:
parent
51de33c2b5
commit
0580db6c68
3 changed files with 18 additions and 7 deletions
|
@ -6,11 +6,5 @@ export class Sketch {
|
|||
this.ctx = this.canvas.getContext("2d");
|
||||
|
||||
document.body.appendChild(this.canvas);
|
||||
|
||||
postMessage({
|
||||
kind: "resize",
|
||||
width,
|
||||
height,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue