1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-03 05:25:52 +00:00

fix: WebUI render html entity in torrent ratio (#6491)

This commit is contained in:
Yat Ho 2024-01-07 01:02:10 +08:00 committed by GitHub
parent df1dc5812c
commit 3b017dbd86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@ export class StatisticsDialog extends EventTarget {
let ratio = Utils.ratio(s.uploadedBytes, s.downloadedBytes);
setTextContent(this.elements.session.up, fmt.size(s.uploadedBytes));
setTextContent(this.elements.session.down, fmt.size(s.downloadedBytes));
setTextContent(this.elements.session.ratio, fmt.ratioString(ratio));
this.elements.session.ratio.innerHTML = fmt.ratioString(ratio);
setTextContent(
this.elements.session.time,
fmt.timeInterval(s.secondsActive),
@ -62,7 +62,7 @@ export class StatisticsDialog extends EventTarget {
ratio = Utils.ratio(s.uploadedBytes, s.downloadedBytes);
setTextContent(this.elements.total.up, fmt.size(s.uploadedBytes));
setTextContent(this.elements.total.down, fmt.size(s.downloadedBytes));
setTextContent(this.elements.total.ratio, fmt.ratioString(ratio));
this.elements.total.ratio.innerHTML = fmt.ratioString(ratio);
setTextContent(this.elements.total.time, fmt.timeInterval(s.secondsActive));
}

View file

@ -231,7 +231,7 @@ export class TorrentRendererFull {
// progress details
e = root._progress_details_container;
setTextContent(e, TorrentRendererFull.getProgressDetails(controller, t));
e.innerHTML = TorrentRendererFull.getProgressDetails(controller, t);
// progressbar
TorrentRendererHelper.renderProgressbar(controller, t, root._progressbar);