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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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