Clarify comment
This commit is contained in:
parent
3b109f7612
commit
cf92e7f64b
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue