mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-31 06:41:03 +00:00
refactor: remove unnecessary download key deletion in game installer actions and simplify file size handling in download manager
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user