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

Commit

Permalink
Add version to update url
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Apr 15, 2016
1 parent fe823ac commit b7648a7
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 b7648a7

Please sign in to comment.