mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
WebUI: use template literals instead of string concatenation
PR #22177.
This commit is contained in:
@@ -177,7 +177,7 @@ window.qBittorrent.PropTrackers ??= (() => {
|
||||
icon: "images/qbittorrent-tray.svg",
|
||||
title: "QBT_TR(Add trackers)QBT_TR[CONTEXT=TrackersAdditionDialog]",
|
||||
loadMethod: "iframe",
|
||||
contentURL: "addtrackers.html?hash=" + current_hash,
|
||||
contentURL: `addtrackers.html?hash=${current_hash}`,
|
||||
scrollbars: true,
|
||||
resizable: false,
|
||||
maximizable: false,
|
||||
@@ -202,7 +202,7 @@ window.qBittorrent.PropTrackers ??= (() => {
|
||||
icon: "images/qbittorrent-tray.svg",
|
||||
title: "QBT_TR(Tracker editing)QBT_TR[CONTEXT=TrackerListWidget]",
|
||||
loadMethod: "iframe",
|
||||
contentURL: "edittracker.html?hash=" + current_hash + "&url=" + trackerUrl,
|
||||
contentURL: `edittracker.html?hash=${current_hash}&url=${trackerUrl}`,
|
||||
scrollbars: true,
|
||||
resizable: false,
|
||||
maximizable: false,
|
||||
|
||||
Reference in New Issue
Block a user