diff --git a/renderer/main.js b/renderer/main.js index 36ef477..39bcc30 100644 --- a/renderer/main.js +++ b/renderer/main.js @@ -170,7 +170,6 @@ function dispatch (action, ...args) { } if (action === 'openTorrentAddress') { state.modal = { id: 'open-torrent-address-modal' } - update() } if (action === 'createTorrent') { createTorrent(args[0] /* options */) diff --git a/renderer/views/open-torrent-address-modal.js b/renderer/views/open-torrent-address-modal.js index 1cf9bb4..a2d5c7d 100644 --- a/renderer/views/open-torrent-address-modal.js +++ b/renderer/views/open-torrent-address-modal.js @@ -1,6 +1,6 @@ module.exports = OpenTorrentAddressModal -var {dispatch} = require('../lib/dispatcher') +var {dispatch, dispatcher} = require('../lib/dispatcher') var hx = require('../lib/hx') function OpenTorrentAddressModal (state) { @@ -11,8 +11,8 @@ function OpenTorrentAddressModal (state) {
- - + +
@@ -27,7 +27,3 @@ function handleOK () { dispatch('exitModal') dispatch('addTorrent', document.querySelector('#add-torrent-url').value) } - -function handleCancel () { - dispatch('exitModal') -} diff --git a/renderer/views/update-available-modal.js b/renderer/views/update-available-modal.js index d270974..d97cc76 100644 --- a/renderer/views/update-available-modal.js +++ b/renderer/views/update-available-modal.js @@ -11,8 +11,8 @@ function UpdateAvailableModal (state) {A new version of WebTorrent is available: v${state.modal.version}
We have an auto-updater for Windows and Mac. We don't have one for Linux yet, so you'll have to download the new version manually.
- - + +
`