Files
smack-a-brother/tools/node_pre.js
T
shweetandClaude Opus 5.5 2007fb7edc Initial commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 01:30:33 -05:00

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));