WebUI: use template literals instead of string concatenation

PR #22177.
This commit is contained in:
Chocobo1
2025-01-18 20:51:47 +08:00
committed by GitHub
parent f2eecf8a4e
commit 1ee84033ec
19 changed files with 127 additions and 127 deletions

View File

@@ -48,7 +48,7 @@ window.qBittorrent.PiecesBar ??= (() => {
const PiecesBar = new Class({
initialize: (pieces, parameters) => {
const vals = {
id: "piecesbar_" + (piecesBarUniqueId++),
id: `piecesbar_${piecesBarUniqueId++}`,
width: 0,
height: 0,
downloadingColor: "hsl(110deg 94% 27%)", // @TODO palette vars not supported for this value, apply average