Add announcement feature

If there's a message returned by the given remote URL, then it will
show up for the user.

Useful in situations where the auto-updater is not working, or if
there's a security issue.
This commit is contained in:
Feross Aboukhadijeh
2016-05-19 20:03:02 -07:00
parent 74ada99f2b
commit 22cdcdb468
3 changed files with 31 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ var electron = require('electron')
var app = electron.app
var ipcMain = electron.ipcMain
var announcement = require('./announcement')
var config = require('../config')
var crashReporter = require('../crash-reporter')
var handlers = require('./handlers')
@@ -91,6 +92,7 @@ function init () {
}
function delayedInit () {
announcement.init()
tray.init()
handlers.install()
updater.init()