diff --git a/dists/emscripten/custom_shell-pre.js b/dists/emscripten/custom_shell-pre.js index c567e001..b9e25edb 100644 --- a/dists/emscripten/custom_shell-pre.js +++ b/dists/emscripten/custom_shell-pre.js @@ -1,8 +1,9 @@ /*global Module*/ -Module["arguments"] = []; +// VetTV: keep arguments supplied by the host page. The stock shell cleared them. +if (!Module["arguments"]) Module["arguments"] = []; // Add all parameters passed via the fragment identifier -if (window.location.hash.length > 0) { +if (Module["arguments"].length === 0 && window.location.hash.length > 0) { params = decodeURI(window.location.hash.substring(1)).split(" ") params.forEach((param) => { Module["arguments"].push(param);