const React = require('react') const electron = require('electron') const ModalOKCancel = require('./modal-ok-cancel') const { dispatch } = require('../lib/dispatcher') module.exports = class UpdateAvailableModal extends React.Component { render () { const state = this.props.state return (

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.

) function handleShow () { // TODO: use the GitHub urls from config.js electron.shell.openExternal('https://github.com/webtorrent/webtorrent-desktop/releases') dispatch('exitModal') } function handleSkip () { dispatch('skipVersion', state.modal.version) dispatch('exitModal') } } }