Some minor changes to make it easier to load a machine in the Node environment
This commit is contained in:
parent
5e2073f3ac
commit
d930b31c53
38 changed files with 4216 additions and 3743 deletions
|
|
@ -351,13 +351,13 @@ Computer.prototype.setMachineParms = function(parmsMachine)
|
|||
Computer.prototype.getMachineParm = function(sParm, parmsComponent)
|
||||
{
|
||||
/*
|
||||
* When checking parmsURL, the check is allowed be a bit looser, because URL parameters are
|
||||
* When using getURLParm(), the check is allowed be a bit looser, because URL parameters are
|
||||
* user-supplied, whereas most other parameters are developer-supplied. Granted, a developer
|
||||
* may also be sloppy and neglect to use correct case (eg, 'automount' instead of 'autoMount'),
|
||||
* but there are limits to my paranoia.
|
||||
*/
|
||||
var sParmLC = sParm.toLowerCase();
|
||||
var value = Component.parmsURL[sParm] || Component.parmsURL[sParmLC];
|
||||
var value = web.getURLParm(sParm) || web.getURLParm(sParmLC);
|
||||
|
||||
if (value === undefined && this.parmsMachine) {
|
||||
value = this.parmsMachine[sParm];
|
||||
|
|
|
|||
Loading…
Reference in a new issue