Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
Merge pull request #141 from electron/add-version-to-update-url
Browse files Browse the repository at this point in the history
Add version to update url
  • Loading branch information
kevinsawicki committed Apr 15, 2016
2 parents 081948b + b7648a7 commit 6c1ed3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion auto-updater.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const app = require('electron').app
const autoUpdater = require('electron').autoUpdater
const Menu = require('electron').Menu

Expand Down Expand Up @@ -29,7 +30,7 @@ exports.initialize = function () {
exports.updateMenu()
})

autoUpdater.setFeedURL('https://electron-api-demos.githubapp.com/updates')
autoUpdater.setFeedURL(`https://electron-api-demos.githubapp.com/updates?version=${app.getVersion()}`)
autoUpdater.checkForUpdates()
}

Expand Down

0 comments on commit 6c1ed3a

Please sign in to comment.