docs: fix autoupdater tutorial API (#23298)

This commit is contained in:
Erick Zhao 2020-04-30 18:54:53 -07:00 committed by GitHub
parent 8bc6b81edc
commit 2eb6781016
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,9 +80,9 @@ Next, construct the URL of the update server and tell
```javascript
const server = 'https://your-deployment-url.com'
const feed = `${server}/update/${process.platform}/${app.getVersion()}`
const url = `${server}/update/${process.platform}/${app.getVersion()}`
autoUpdater.setFeedURL(feed)
autoUpdater.setFeedURL({ url })
```
As the final step, check for updates. The example below will check every minute: