examples: make SDL_Log work with the Emscripten console.

Fixes #10410.
This commit is contained in:
Ryan C. Gordon
2024-07-30 08:59:34 -04:00
parent fbed34a645
commit 6559cfb143

View File

@@ -169,6 +169,7 @@
}
};
})(),
printErr: function(text) { Module.print(text) },
canvas: (() => {
var canvas = document.getElementById('canvas');