diff --git a/app/extensions/torrent/locales/en-US/app.properties b/app/extensions/torrent/locales/en-US/app.properties index 1168022eccb..70bd72b6162 100644 --- a/app/extensions/torrent/locales/en-US/app.properties +++ b/app/extensions/torrent/locales/en-US/app.properties @@ -14,6 +14,7 @@ downloading=Downloading downloadingTorrent=Downloading Torrent files=Files num=# +downloadFile=Download torrentStatus=Torrent Status torrentLoadingInfo=Loading torrent info... torrentUntitled=Untitled torrent diff --git a/js/components/sortableTable.js b/js/components/sortableTable.js index 261c2a4fb9a..9f88867b2fc 100644 --- a/js/components/sortableTable.js +++ b/js/components/sortableTable.js @@ -336,14 +336,15 @@ class SortableTable extends React.Component { 'sort-header': true, 'sort-default': this.sortingDisabled || heading === this.props.defaultHeading } - headerClasses['heading-' + heading] = true + const isString = typeof heading === 'string' + if (isString) headerClasses['heading-' + heading] = true return { - typeof heading === 'string' - ?
- : heading + isString + ?
+ : heading } })} diff --git a/js/webtorrent/components/mediaViewer.js b/js/webtorrent/components/mediaViewer.js index c8e4598da8d..95588155e3d 100644 --- a/js/webtorrent/components/mediaViewer.js +++ b/js/webtorrent/components/mediaViewer.js @@ -25,30 +25,19 @@ module.exports = class MediaViewer extends React.Component { const fileExt = file && getExtension(file.name) const isVideo = SUPPORTED_VIDEO_EXTENSIONS.includes(fileExt) const isAudio = SUPPORTED_AUDIO_EXTENSIONS.includes(fileExt) + const fileURL = torrent.serverURL && (torrent.serverURL + '/' + ix) let content if (torrent.serverURL == null) { content =
} else if (isVideo) { - content = ( -