mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 12:24:26 +02:00
Update checkForUpdates.js
"retrievedMetadata" -> "vircadiaMetadata"
This commit is contained in:
parent
abac59c09b
commit
ec25ac9e7d
1 changed files with 4 additions and 4 deletions
|
@ -31,11 +31,11 @@ function retrieveMetadata() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkForUpdates() {
|
function checkForUpdates() {
|
||||||
var retrievedMetadata = retrieveMetadata();
|
var vircadiaMetadata = retrieveMetadata();
|
||||||
|
|
||||||
// Don't check for updates on a dev build.
|
// Don't check for updates on a dev build.
|
||||||
if (retrievedMetadata && currentVersion !== "dev") {
|
if (vircadiaMetadata && currentVersion !== "dev") {
|
||||||
var checkVersion = semanticVersionCompare(currentVersion, retrievedMetadata[currentBuildType].version);
|
var checkVersion = semanticVersionCompare(currentVersion, vircadiaMetadata[currentBuildType].version);
|
||||||
|
|
||||||
// An update is available!
|
// An update is available!
|
||||||
if (checkVersion === -1) {
|
if (checkVersion === -1) {
|
||||||
|
@ -45,7 +45,7 @@ function checkForUpdates() {
|
||||||
channel: "Local",
|
channel: "Local",
|
||||||
position: MyAvatar.position,
|
position: MyAvatar.position,
|
||||||
colour: notificationColor,
|
colour: notificationColor,
|
||||||
message: notificationText + retrievedMetadata[currentBuildType].version,
|
message: notificationText + vircadiaMetadata[currentBuildType].version,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue