Apply width and height to windows

This commit is contained in:
MeowcaTheoRange 2023-11-23 12:08:33 -06:00
parent 5a0d42d892
commit 4b2176552d
2 changed files with 6 additions and 2 deletions

View file

@ -59,7 +59,9 @@ function initDocument(hx, w, h, t) {
<canvas id="canvas" width="300" height="200"></canvas>
</body>
</html>`,
true
true,
w,
h
);
newWindow.windowContent.contentWindow.addEventListener("load", () => {

View file

@ -28,7 +28,9 @@ function initDocument(hx, w, h, t) {
<canvas id="canvas" width="1280" height="720"></canvas>
</body>
</html>`,
true
true,
1280,
720
);
newWindow.windowContent.contentWindow.addEventListener("load", () => {