fix(login): fix avatar.js (#3614)

This commit is contained in:
Max Peintner
2022-05-11 08:52:17 +02:00
committed by GitHub
parent d431ccb965
commit 00e042ea44

View File

@@ -184,7 +184,7 @@ for (let i = 0; i < avatars.length; i++) {
const colorPalette = this.getColor(displayName); const colorPalette = this.getColor(displayName);
const isDark = const isDark =
document.documentElement.classList.includes("lgn-dark-theme"); document.documentElement.classList.contains("lgn-dark-theme");
const backgroundShade = isDark ? 900 : 300; const backgroundShade = isDark ? 900 : 300;
const foregroundShade = isDark ? 200 : 900; const foregroundShade = isDark ? 200 : 900;