mirror of
https://github.com/libretro/RetroArch
synced 2025-02-25 12:41:18 +00:00
(Emscripten) Use .bind() on the console object
This commit is contained in:
parent
8564a5b266
commit
993de8b4c4
@ -239,9 +239,9 @@ var Module =
|
|||||||
arguments: ["-v", "--menu"],
|
arguments: ["-v", "--menu"],
|
||||||
preRun: [],
|
preRun: [],
|
||||||
postRun: [],
|
postRun: [],
|
||||||
// Print both stdout and stderr to the browser console.
|
// Log both stdout and stderr with the browser's console object.
|
||||||
print: console.log,
|
print: console.log.bind(console),
|
||||||
printErr: console.log,
|
printErr: console.log.bind(console),
|
||||||
canvas: document.getElementById('canvas'),
|
canvas: document.getElementById('canvas'),
|
||||||
totalDependencies: 0,
|
totalDependencies: 0,
|
||||||
monitorRunDependencies: function(left)
|
monitorRunDependencies: function(left)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user