Windows: register protocol handlers on startup

Just like other OSes. There's no reason for there to be a difference.
This commit is contained in:
Feross Aboukhadijeh
2016-04-04 04:43:27 -07:00
parent 4ee8a883bf
commit 6ed42431f2
2 changed files with 2 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ function init () {
windows.createMainWindow()
shortcuts.init()
tray.init()
if (process.platform !== 'win32') handlers.init()
handlers.init()
})
app.on('ipcReady', function () {

View File

@@ -11,8 +11,6 @@ var pathExists = require('path-exists')
var app = electron.app
var handlers = require('./handlers')
var exeName = path.basename(process.execPath)
var updateDotExe = path.join(process.execPath, '..', '..', 'Update.exe')
@@ -20,9 +18,7 @@ function handleEvent (cmd) {
if (cmd === '--squirrel-install') {
// App was installed.
// Install protocol/file handlers, desktop/start menu shortcuts.
handlers.init()
// Install desktop/start menu shortcuts.
createShortcuts(function () {
// Ensure user sees install splash screen so they realize that Setup.exe actually
// installed an application and isn't the application itself.