electron/lib/browser/api/auto-updater/auto-updater-native.js

10 lines
317 B
JavaScript

const EventEmitter = require('events').EventEmitter
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