mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-02-11 14:34:18 +00:00
update webtorrent preview container
This commit is contained in:
parent
9f17b2ac46
commit
424e08f2ae
@ -1309,7 +1309,7 @@ function _startTorrentDownloadAndPreview(torrentId, previewContainer, isMedia) {
|
|||||||
torrent = WebTorrentClient.add(torrentId);
|
torrent = WebTorrentClient.add(torrentId);
|
||||||
|
|
||||||
previewContainer.empty();
|
previewContainer.empty();
|
||||||
var speedStatus = $('<span class="post-text"/>');
|
var speedStatus = $('<p/>');
|
||||||
previewContainer.append(speedStatus);
|
previewContainer.append(speedStatus);
|
||||||
function updateSpeed () {
|
function updateSpeed () {
|
||||||
var progress = (100 * torrent.progress).toFixed(1)
|
var progress = (100 * torrent.progress).toFixed(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user