HelloZeroNet / HelloZeroNet/ZeroNet
Wrapper commands do not support positional arguments
- Langage dominant
- JavaScript
- Étoiles
- 18.8k
- Forks
- 2.3k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
### Step 1: Please describe your environment
* ZeroNet version: d3bf001752b5df11ebca5ef60f3974599d5c38bf
### Step 2: Describe the problem:
Setting the title via:
```javascript
ZeroFrame.cmd('wrapperSetTitle', 'My Great Title');
```
works fine, but takes in a string as input. Whereas you would also expect the following to work:
```javascript
ZeroFrame.cmd('wrapperSetTitle', {title: 'My Great Title'});
```
But not so, as the title is set to `[object Object]`.
Presumably every ZeroFrame command should handle the object syntax, including `wrapperSetTitle`?
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Start from the ZeroFrame.cmd entry point and the wrapperSetTitle command mentioned in the report, then trace how string and object arguments are handled. Confirm the expected argument form and verify that passing {title: 'My Great Title'} sets the title without producing [object Object].
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript
- Domaine
- api
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100