Merge branch 'master' into feature/external-player.js-cleanup

This commit is contained in:
Michael George Attard
2018-05-27 22:32:29 +02:00
5 changed files with 15 additions and 12 deletions

View File

@@ -191,9 +191,14 @@ function handleSubmit () {
path: this.state.basePath,
files: this.state.files,
announce: announceList,
private: this.state.isPrivate,
comment: this.state.comment.trim()
}
// If torrent is not private, leave private flag unset. This ensures that
// the torrent info hash will match the result generated by other tools,
// including webtorrent-cli.
if (this.state.isPrivate) options.private = true
dispatch('createTorrent', options)
}