HelloZeroNet / HelloZeroNet/ZeroNet
Wrapper commands do not support positional arguments
- Vorherrschende Sprache
- JavaScript
- Sterne
- 18.8k
- Forks
- 2.3k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### 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`?
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.