diff --git a/scripts/system/checkForUpdates.js b/scripts/system/checkForUpdates.js index 6a16a98877..724cd0a68d 100644 --- a/scripts/system/checkForUpdates.js +++ b/scripts/system/checkForUpdates.js @@ -31,11 +31,11 @@ function retrieveMetadata() { } function checkForUpdates() { - var retrievedMetadata = retrieveMetadata(); + var vircadiaMetadata = retrieveMetadata(); // Don't check for updates on a dev build. - if (retrievedMetadata && currentVersion !== "dev") { - var checkVersion = semanticVersionCompare(currentVersion, retrievedMetadata[currentBuildType].version); + if (vircadiaMetadata && currentVersion !== "dev") { + var checkVersion = semanticVersionCompare(currentVersion, vircadiaMetadata[currentBuildType].version); // An update is available! if (checkVersion === -1) { @@ -45,7 +45,7 @@ function checkForUpdates() { channel: "Local", position: MyAvatar.position, colour: notificationColor, - message: notificationText + retrievedMetadata[currentBuildType].version, + message: notificationText + vircadiaMetadata[currentBuildType].version, })); } }