This commit is contained in:
Natsumi
2021-10-03 18:24:28 +13:00
parent a94af35348
commit a4c029cf10
2 changed files with 13 additions and 4 deletions

View File

@@ -7611,14 +7611,14 @@ speechSynthesis.getVoices();
var urlParams = new URLSearchParams(gameLog.url);
if (url.pathname.substring(0, 13) === '/api/1/users/') {
var pathArray = url.pathname.split('/');
userId = pathArray[4]
userId = pathArray[4];
} else if (urlParams.has('userId')) {
userId = urlParams.get('userId');
}
} catch (err) {
console.error(err);
}
if (userId && !API.cachedUsers.has(userId)) {;
if (userId && !API.cachedUsers.has(userId)) {
API.getUser({userId});
}
return;
@@ -15582,6 +15582,13 @@ speechSynthesis.getVoices();
this.checkingForVRCXUpdate = false;
var json = JSON.parse(response.data);
var releases = [];
if (typeof json !== 'object' || json.message) {
$app.$message({
message: `Failed to check for update, "${json.message}"`,
type: 'error'
});
return;
}
for (var release of json) {
for (var asset of release.assets) {
if (