Skip to content

Commit a8bd1c8

Browse files
committed
Fixed a bug in the app2html command
1 parent fb59b4d commit a8bd1c8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## 2.3.13
4+
5+
- Modifed the inclusion order of SDL.h
6+
- Fixed a bug in the app2html command
7+
38
## 2.3.12
49

510
- Added a Q&A about file loading to the FAQ

wasm/pyxel.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ async function _createScreenElements() {
103103
if (!pyxelScreen) {
104104
pyxelScreen = document.createElement("div");
105105
pyxelScreen.id = "pyxel-screen";
106+
if (!document.body) {
107+
document.body = document.createElement("body");
108+
}
106109
document.body.appendChild(pyxelScreen);
107110
}
108111
pyxelScreen.oncontextmenu = (event) => event.preventDefault();

0 commit comments

Comments
 (0)