2014-08-27 08:41:31 +00:00
|
|
|
{
|
|
|
|
Module['arguments'] = ['-nohome'];
|
2013-04-04 18:04:48 +00:00
|
|
|
|
2014-08-27 08:41:31 +00:00
|
|
|
var man = window.location.protocol+'//'+window.location.host+window.location.pathname + '.fmf';
|
|
|
|
if (window.location.hash != "")
|
|
|
|
man = window.location.hash.substring(1);
|
2013-04-04 18:04:48 +00:00
|
|
|
|
2014-08-27 08:41:31 +00:00
|
|
|
Module['arguments'] = Module['arguments'].concat(['-manifest', man]);
|
|
|
|
// use query string in URL as command line
|
|
|
|
if (!document.referrer) {
|
|
|
|
qstring = decodeURIComponent(window.location.search.substring(1)).split(" ");
|
|
|
|
Module['arguments'] = Module['arguments'].concat(qstring);
|
|
|
|
}
|
|
|
|
}
|