Fix transparent image when no face image

This commit is contained in:
the1812 2019-12-27 17:41:12 +08:00
parent 52f6c63fe0
commit 77fe0286ab
2 changed files with 3 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -755,6 +755,8 @@ class UserInfo extends NavbarComponent {
face.setAttribute("srcset", dpis.map(dpi => {
return `${faceUrl}@${parseInt(faceBaseSize * dpi)}w_${parseInt(faceBaseSize * dpi)}h.jpg ${dpi}x`;
}).join(","));
} else {
face.setAttribute('src', '//static.hdslb.com/images/member/noface.gif')
}
if (userInfo.pendant.image) {
const pendant = await SpinQuery.select(".custom-navbar .user-face-container .user-pendant");