Browse Source

examples: make SDL_Log work with the Emscripten console.

Fixes #10410.
Ryan C. Gordon 1 year ago
parent
commit
6559cfb143
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/template.html

+ 1 - 0
examples/template.html

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