This commit is contained in:
pypy
2021-01-21 12:55:51 +09:00
parent 0bd5571ede
commit 07bbb7033f

View File

@@ -1093,15 +1093,15 @@ speechSynthesis.getVoices();
if ((this.config.desktopToast) && (this.isGameNoVR)) {
var imageURL = '';
if (noty.userId) {
await API.getCachedUser({
imageURL = await API.getCachedUser({
userId: noty.userId
}).catch((err) => {
throw err;
}).then((args) => {
imageURL = args.json.currentAvatarThumbnailImageUrl;
if ((this.config.displayVRCPlusIconsAsAvatar) && (args.json.userIcon)) {
imageURL = args.json.userIcon;
return args.json.userIcon;
}
return args.json.currentAvatarThumbnailImageUrl;
});
}
switch (noty.type) {