diff --git a/packages/telescope-update-prompt/lib/client/templates/update_banner.html b/packages/telescope-update-prompt/lib/client/templates/update_banner.html index 44d745750..c368c07c5 100644 --- a/packages/telescope-update-prompt/lib/client/templates/update_banner.html +++ b/packages/telescope-update-prompt/lib/client/templates/update_banner.html @@ -4,7 +4,11 @@

{{version}}

A new version of Telescope is available.

-

You have: {{currentVersion}}. Note: this message is only displayed to admins. Update instructions.

+

+ You have: {{currentVersion}}. Note: this message is only displayed to admins. + View changelog | + View update instructions +

{{/if}} diff --git a/packages/telescope-update-prompt/lib/client/update.js b/packages/telescope-update-prompt/lib/client/update.js index 0f9cddd07..c0c9e6557 100644 --- a/packages/telescope-update-prompt/lib/client/update.js +++ b/packages/telescope-update-prompt/lib/client/update.js @@ -11,17 +11,18 @@ compareVersions = function (v1, v2) { // return true if v2 is newer than v1 Meteor.startup(function () { if(Meteor.user() && isAdmin(Meteor.user())){ - var url = 'http://localhost:3000/'; + var url = 'http://version.telescopeapp.org/'; HTTP.get(url, { - data: { + params: { currentVersion: telescopeVersion, siteTitle: getSetting('title'), siteUrl: getSiteUrl() } }, function (error, result) { if(result){ + // console.log(result); var currentVersion = telescopeVersion; - var newVersion = "0.9.5"; + var newVersion = result.content; var message = ""; if (compareVersions(currentVersion, newVersion)){ Session.set('updateVersion', newVersion);