blob: fdc7508ebb8f963d1e046dcc25efc5981b5fa3e5 [file] [log] [blame] [edit]
// Route URL GET parameters to argc+argv
if (typeof window === "object") {
Module['arguments'] = window.location.search.substr(1).trim().split('&');
// If no args were passed arguments = [''], in which case kill the single empty string.
if (!Module['arguments'][0])
Module['arguments'] = [];
}