Fix theme color parsing with some web browsers
This commit is contained in:
parent
1fe60b9406
commit
33856ffa22
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue