This commit is contained in:
Natsumi
2021-08-22 07:12:37 +12:00
parent b5619b700e
commit 62b458c906

View File

@@ -5568,7 +5568,8 @@ speechSynthesis.getVoices();
) { ) {
savedCredentialsArray[currentUser.username].user = currentUser; savedCredentialsArray[currentUser.username].user = currentUser;
} }
savedCredentialsArray[currentUser.username].cookies = await webApiService.getCookies(); savedCredentialsArray[currentUser.username].cookies =
await webApiService.getCookies();
this.loginForm.savedCredentials = savedCredentialsArray; this.loginForm.savedCredentials = savedCredentialsArray;
var jsonCredentialsArray = JSON.stringify(savedCredentialsArray); var jsonCredentialsArray = JSON.stringify(savedCredentialsArray);
configRepository.setString('savedCredentials', jsonCredentialsArray); configRepository.setString('savedCredentials', jsonCredentialsArray);
@@ -5577,7 +5578,7 @@ speechSynthesis.getVoices();
}; };
$app.methods.relogin = function (user) { $app.methods.relogin = function (user) {
var { loginParmas } = user; var {loginParmas} = user;
if (user.cookies) { if (user.cookies) {
webApiService.setCookies(user.cookies); webApiService.setCookies(user.cookies);
} }
@@ -6789,8 +6790,10 @@ speechSynthesis.getVoices();
$app.feedDownloadWorldCache(ref.id, props.location[0]); $app.feedDownloadWorldCache(ref.id, props.location[0]);
} }
if ( if (
props.currentAvatarImageUrl || (props.currentAvatarImageUrl ||
props.currentAvatarThumbnailImageUrl props.currentAvatarThumbnailImageUrl) &&
props.currentAvatarImageUrl !==
'https://assets.vrchat.com/system/defaultAvatar.png'
) { ) {
var currentAvatarImageUrl = ''; var currentAvatarImageUrl = '';
var previousCurrentAvatarImageUrl = ''; var previousCurrentAvatarImageUrl = '';