Clarify comment

pull/2967/head
David Baker 2017-01-17 14:04:42 +00:00
parent 3b109f7612
commit cf92e7f64b
1 changed files with 2 additions and 1 deletions

View File

@ -116,7 +116,8 @@ function startAutoUpdate(update_base_url) {
// it anywhere (apart from the User-Agent) so it's up to us. We could // it anywhere (apart from the User-Agent) so it's up to us. We could
// (and previously did) just use the User-Agent, but this doesn't // (and previously did) just use the User-Agent, but this doesn't
// rely on NSURLConnection setting the User-Agent to what we expect, // rely on NSURLConnection setting the User-Agent to what we expect,
// and also acts as a convenient cache-buster between versions. // and also acts as a convenient cache-buster to ensure that when the
// app updates it always gets a fresh value to avoid update-looping.
electron.autoUpdater.setFeedURL( electron.autoUpdater.setFeedURL(
update_base_url + update_base_url +
'macos/?localVersion=' + encodeURIComponent(electron.app.getVersion()) 'macos/?localVersion=' + encodeURIComponent(electron.app.getVersion())