Clarify comment

This commit is contained in:
David Baker 2017-01-17 14:04:42 +00:00
parent 3b109f7612
commit cf92e7f64b

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())