HelloZeroNet / HelloZeroNet/ZeroNet

Wrapper commands do not support positional arguments

Open
#1,792 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
18.8k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

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`?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.