mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix transparent image when no face image
This commit is contained in:
parent
52f6c63fe0
commit
77fe0286ab
2
min/custom-navbar.min.js
vendored
2
min/custom-navbar.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user