mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Devtools gcli commands - fix the help.
This commit is contained in:
parent
4f027a0024
commit
46f09ffa53
2 changed files with 4 additions and 4 deletions
|
|
@ -335,10 +335,10 @@ Parameter.prototype.toJson = function() {
|
|||
};
|
||||
|
||||
// Values do not need to be serializable, so we don't try. For the client
|
||||
// side (which doesn't do any executing) we don't actually care what the
|
||||
// default value is, just that it exists
|
||||
// side (which doesn't do any executing) we only care whether default value is
|
||||
// undefined, null, or something else.
|
||||
if (this.paramSpec.defaultValue !== undefined) {
|
||||
json.defaultValue = {};
|
||||
json.defaultValue = (this.paramSpec.defaultValue === null) ? null : {};
|
||||
}
|
||||
if (this.paramSpec.description != null) {
|
||||
json.description = this.paramSpec.description;
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ function getHelpManData(commandData, context) {
|
|||
}
|
||||
else {
|
||||
// We need defaultText to work the text version of defaultValue
|
||||
input = l10n.lookupFormat('helpManOptional');
|
||||
input = l10n.lookup('helpManOptional');
|
||||
/*
|
||||
var val = param.type.stringify(param.defaultValue);
|
||||
input = Promise.resolve(val).then(function(defaultValue) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue