HelloZeroNet / HelloZeroNet/ZeroNet
Wrapper commands do not support positional arguments
- 主要言語
- JavaScript
- スター
- 18.8k
- フォーク
- 2.3k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
### 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`?
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
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].
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- api
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100