6 lines
392 B
JavaScript
6 lines
392 B
JavaScript
// Headless node runs of the emscripten build: SDL looks for hints in the page's URL, which node doesn't have, and the
|
|
// game reads RPG_SEED and friends from the environment, which emscripten doesn't pass through by itself.
|
|
globalThis.window = globalThis.window || { location: { search: "" } };
|
|
Module.preRun = Module.preRun || [];
|
|
Module.preRun.push(() => Object.assign(ENV, process.env));
|