refactor: remove unnecessary download key deletion in game installer actions and simplify file size handling in download manager

This commit is contained in:
Moyasee
2026-01-25 10:40:38 +02:00
parent c9afd65536
commit d4bd8f7bf1
6 changed files with 18 additions and 14 deletions

View File

@@ -47,9 +47,9 @@ function hexToRgb(hex: string): [number, number, number] {
if (h.length === 3) {
h = h[0] + h[0] + h[1] + h[1] + h[2] + h[2];
}
const r = parseInt(h.substring(0, 2), 16) || 0;
const g = parseInt(h.substring(2, 4), 16) || 0;
const b = parseInt(h.substring(4, 6), 16) || 0;
const r = Number.parseInt(h.substring(0, 2), 16) || 0;
const g = Number.parseInt(h.substring(2, 4), 16) || 0;
const b = Number.parseInt(h.substring(4, 6), 16) || 0;
return [r, g, b];
}