mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
Fix auto updater
This commit is contained in:
+3
-6
@@ -7592,7 +7592,6 @@ speechSynthesis.getVoices();
|
|||||||
props.location[0] === 'traveling' &&
|
props.location[0] === 'traveling' &&
|
||||||
props.location[1] !== 'traveling'
|
props.location[1] !== 'traveling'
|
||||||
) {
|
) {
|
||||||
// $app.onPlayerTraveling(ref);
|
|
||||||
// store previous location when user is traveling
|
// store previous location when user is traveling
|
||||||
ref.$previousLocation = props.location[1];
|
ref.$previousLocation = props.location[1];
|
||||||
ref.$travelingToTime = Date.now();
|
ref.$travelingToTime = Date.now();
|
||||||
@@ -18792,10 +18791,7 @@ speechSynthesis.getVoices();
|
|||||||
console.log(json, response);
|
console.log(json, response);
|
||||||
}
|
}
|
||||||
if (json === Object(json) && json.name && json.published_at) {
|
if (json === Object(json) && json.name && json.published_at) {
|
||||||
this.latestAppVersion = `${json.name} (${formatDate(
|
this.latestAppVersion = json.name;
|
||||||
json.published_at,
|
|
||||||
'YYYY-MM-DD HH24:MI:SS'
|
|
||||||
)})`;
|
|
||||||
var name = json.name;
|
var name = json.name;
|
||||||
this.VRCXUpdateDialog.updatePendingIsLatest = false;
|
this.VRCXUpdateDialog.updatePendingIsLatest = false;
|
||||||
if (name === this.pendingVRCXUpdate) {
|
if (name === this.pendingVRCXUpdate) {
|
||||||
@@ -18804,7 +18800,8 @@ speechSynthesis.getVoices();
|
|||||||
} else if (name > this.appVersion) {
|
} else if (name > this.appVersion) {
|
||||||
for (var asset of json.assets) {
|
for (var asset of json.assets) {
|
||||||
if (
|
if (
|
||||||
asset.content_type === 'application/x-msdownload' &&
|
(asset.content_type === 'application/x-msdownload' ||
|
||||||
|
asset.content_type === 'application/x-msdos-program') &&
|
||||||
asset.state === 'uploaded'
|
asset.state === 'uploaded'
|
||||||
) {
|
) {
|
||||||
var downloadUrl = asset.browser_download_url;
|
var downloadUrl = asset.browser_download_url;
|
||||||
|
|||||||
Reference in New Issue
Block a user