Add optional requestHeaders argument to autoUpdater.setFeedURL + allow calling mulitple times
This commit is contained in:
parent
c68ca16148
commit
c89d8b19b6
10 changed files with 70 additions and 33 deletions
|
@ -3,4 +3,8 @@ const autoUpdater = process.atomBinding('auto_updater').autoUpdater
|
|||
|
||||
Object.setPrototypeOf(autoUpdater, EventEmitter.prototype)
|
||||
|
||||
autoUpdater.setFeedURL = function (url, headers) {
|
||||
return autoUpdater._setFeedURL(url, headers || {})
|
||||
}
|
||||
|
||||
module.exports = autoUpdater
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue