1
0
Fork 0

Fix theme color parsing with some web browsers

This commit is contained in:
Chocobozzz 2025-03-27 16:26:11 +01:00
parent 1fe60b9406
commit 33856ffa22
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -224,7 +224,8 @@ export class ThemeService {
continue
}
const mainColorHSL = toHSLA(parse(mainColor))
// Use trim for some web browsers: https://github.com/Chocobozzz/PeerTube/issues/6952
const mainColorHSL = toHSLA(parse(mainColor.trim()))
debugLogger(`Theme main variable ${mainColor} -> ${this.toHSLStr(mainColorHSL)}`)
// Inject in alphabetical order for easy debug