Fix autocolors settings.
This commit is contained in:
parent
a20da5b51e
commit
215c5c7f1e
@ -62,7 +62,10 @@ function register ({ registerHook, peertubeHelpers }: RegisterOptions): void {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isAutoColorsAvailable(settings['chat-type'] as ChatType, settings['converse-theme'])) {
|
if (
|
||||||
|
settings['converse-autocolors'] &&
|
||||||
|
isAutoColorsAvailable(settings['chat-type'] as ChatType, settings['converse-theme'])
|
||||||
|
) {
|
||||||
logger.info('We have to try to compute autocolors.')
|
logger.info('We have to try to compute autocolors.')
|
||||||
try {
|
try {
|
||||||
const autocolors = computeAutoColors()
|
const autocolors = computeAutoColors()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user