scummvm/dists/emscripten/custom_shell-pre.js
2024-02-27 17:07:13 +01:00

11 lines
292 B
JavaScript

/*global Module*/
Module["arguments"] = [];
// Add all parameters passed via the fragment identifier
if (window.location.hash.length > 0) {
params = decodeURI(window.location.hash.substring(1)).split(" ")
params.forEach((param) => {
Module["arguments"].push(param);
})
}