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
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 1 additions and 0 deletions

View File

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